mofodojodino / git-hooks
Git hooks for installing into PHP projects. Include linting and code style checking, etc.
Installs: 1 861
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:Shell
Type:project
Requires
This package is not auto-updated.
Last update: 2024-11-13 22:44:16 UTC
README
Installation
Add the following to your require-dev and scripts sections of your project composer.json.
Next run composer update
to pull in the package.
This will run the update and automatically install the hooks in git.
composer.json
{
"require-dev" {
"mofodojodino/git-hooks": "dev-master"
},
"scripts": {
"post-install-cmd": [
"bash ./vendor/mofodojodino/git-hooks/install_hooks.sh"
],
"post-update-cmd": [
"bash ./vendor/mofodojodino/git-hooks/install_hooks.sh"
]
}
}
And that's it, every time you run composer install
or composer update
your git hooks will then be updated to the latest.