producer / githooks
Git hook scripts via Composer
Installs: 15 795
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/producer/githooks
Requires
- php: >=7.1
Requires (Dev)
- pds/skeleton: ~1.0
This package is auto-updated.
Last update: 2025-10-24 09:19:27 UTC
README
Naive Git hooks, installable by Composer.
Add the following to your composer file:
{
    "require-dev": {
        "producer/githooks": "~0.x"
    }
}
After composer install or composer update, issue the following to set
the Git hooks:
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.