Command-line interface

To run the checks, simply:

php artisan phecks:run

If there are any errors, the command's exit code will be 1, and the errors will be displayed as following:

Command options

  • --generate-baseline will run the checks and generate the baseline from them. see baseline.

  • --ignore-baseline Will run the checks and show all the violations (ignoring the baseline if there is any) see baseline.

  • --format[=FORMAT] Will change the way the errors are rendered. console by default, but you can also have github. see formatters.

Last updated