Installation & first scan
Requirements
Section titled “Requirements”PHP 8.2 or newer, Composer, and the json and mbstring PHP extensions. Run the command in the project you want to analyze.
Install
Section titled “Install”composer require --dev goktugcy/worker-safetyIn a Laravel application that is all you need: the package registers an Artisan command through package discovery. See Laravel below.
First scan
Section titled “First scan”# Scan the configured paths, or the framework defaultsvendor/bin/worker-safety scan
# Scan specific directoriesvendor/bin/worker-safety scan app src
# Fail a CI build on HIGH findingsvendor/bin/worker-safety scan --fail-on=high
# Machine-readable outputvendor/bin/worker-safety scan --format=jsonvendor/bin/worker-safety scan --format=sarif > worker-safety.sarifOptionally write a configuration file first:
vendor/bin/worker-safety init