bernardosilva / git-hooks-php
Composer git-hook package with hooks for your php projects.
Package info
github.com/BernardoSilva/git-hooks-php
Language:Shell
Type:git-hook
pkg:composer/bernardosilva/git-hooks-php
2.2.0
2018-04-23 20:57 UTC
Requires
This package is auto-updated.
Last update: 2026-05-29 00:54:07 UTC
README
This is a git-hook package that contains some standards I want to use on all my PHP projects.
I use the git pre-commit hook to validate all my code before every commit to ensure
that my code is always valid.
View how to create your own git-hook package
How to install
Just add this package as a dependency on your project.
php composer.phar require --dev bernardosilva/git-hooks-php
pre-commit
Currently my pre-commit hook is checking for PSR2 coding standards
that are not met using php_codesniffer tool.
How to contribute
- Create a Pull Request
- Suggest new ideas or open new detected issues
Created by
License
MIT © Bernardo Silva