arif-rh / git-hooks
Package to Install Git Hooks
Installs: 181
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Shell
Requires
This package is auto-updated.
Last update: 2025-03-25 02:01:53 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.json
add these scripts:
"scripts": {
"post-install-cmd": [
"Arifrh\\GitHooks\\PreCommit::PSR2" // or CI4
],
"post-update-cmd": [
"Arifrh\\GitHooks\\PreCommit::PSR2" // or CI4
]
}
Note:
- use
PSR2
if you want to use PSR2 Standard, and useCI4
if you want to use CodeIgniter4 standard