Skip to content

hoangphidev/pre-commit

Repository files navigation

Laravel Pre-commit

Latest Version on Packagist Total Downloads

Installation

composer require hoangphi/pre-commit

Publish the configuration:

php artisan vendor:publish --provider="HoangPhi\PreCommit\Providers\PreCommitServiceProvider" --tag=config

Config pre-commit hooks

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