composer require hoangphi/pre-commit
Publish the configuration:
php artisan vendor:publish --provider="HoangPhi\PreCommit\Providers\PreCommitServiceProvider" --tag=config
php artisan pre-commit:install
- Create PSR default config
phpcs.xml
in 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