0.x-dev
0.9999999.9999999.9999999-devGit hook scripts via Composer
MIT
The Requires
- php >=7.1
The Development Requires
Git hook scripts via Composer
Naive Git hooks, installable by Composer., (*1)
Add the following to your composer file:, (*2)
{ "require-dev": { "producer/githooks": "~0.x" } }
After composer install
or composer update
, issue the following to set
the Git hooks:, (*3)
php ./vendor/producer/githooks/bin/set-hooks.php
That creates, or appends to, .git/hooks/pre-commit
file to run a PHP linter on
added, copied, and modified PHP files before git commit
., (*4)
Git hook scripts via Composer
MIT