composer require hoangphi/pre-commitPublish the configuration:
php artisan vendor:publish --provider="HoangPhi\PreCommit\Providers\PreCommitServiceProvider" --tag=configphp artisan pre-commit:install- Create PSR default config
phpcs.xmlin your root project.
php artisan pre-commit:create-phpcs- Added all changed files to git stage and run test manually.
php artisan pre-commit:check