mofodojodino / git-hooks
Git hooks for installing into PHP projects. Include linting and code style checking, etc.
Installs: 1 908
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
Type:project
pkg:composer/mofodojodino/git-hooks
Requires
This package is not auto-updated.
Last update: 2025-10-30 03:30:53 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.