arif-rh / git-hooks
Package to Install Git Hooks
0.1.1
2020-04-24 15:14 UTC
Requires
This package is auto-updated.
Last update: 2026-02-25 03:59:17 UTC
README
Encourage development teams to use better coding style:
- PHP Linter will help to avoid commit with invalid script
- Encourage team to have same coding standard
Features
This package will install pre-commit hooks to the repository to encourage team using same coding standard.
Installation
composer require arif-rh/git-hooks- in the main
composer.jsonadd these scripts:
"scripts": {
"post-install-cmd": [
"Arifrh\\GitHooks\\PreCommit::PSR2" // or CI4
],
"post-update-cmd": [
"Arifrh\\GitHooks\\PreCommit::PSR2" // or CI4
]
}
Note:
- use
PSR2if you want to use PSR2 Standard, and useCI4if you want to use CodeIgniter4 standard