PHPackages                             arif-rh/git-hooks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. arif-rh/git-hooks

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

arif-rh/git-hooks
=================

Package to Install Git Hooks

0.1.1(6y ago)01973MITShell

Since Apr 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/arif-rh/git-hooks)[ Packagist](https://packagist.org/packages/arif-rh/git-hooks)[ RSS](/packages/arif-rh-git-hooks/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (3)

Git Hooks
=========

[](#git-hooks)

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
--------

[](#features)

This package will install pre-commit hooks to the repository to encourage team using same coding standard.

Installation
------------

[](#installation)

1. `composer require arif-rh/git-hooks`
2. 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 use `CI4` if you want to use CodeIgniter4 standard

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2211d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5e5b51452ac209ba31bade4dcabea32ebb599e0a49c778524e780aeb2b9bf0f?d=identicon)[arif-rh](/maintainers/arif-rh)

---

Top Contributors

[![arif-rh](https://avatars.githubusercontent.com/u/2386359?v=4)](https://github.com/arif-rh "arif-rh (3 commits)")

---

Tags

gitCoding Standardgit-hookspre-commit hookscodeigniter4 standardpsr2 standard

### Embed Badge

![Health badge](/badges/arif-rh-git-hooks/health.svg)

```
[![Health](https://phpackages.com/badges/arif-rh-git-hooks/health.svg)](https://phpackages.com/packages/arif-rh-git-hooks)
```

###  Alternatives

[czproject/git-php

Library for work with Git repository in PHP.

5544.9M81](/packages/czproject-git-php)[bruli/php-git-hooks

Git hooks for PHP projects.

675370.8k5](/packages/bruli-php-git-hooks)[sebastianfeldmann/git

PHP git wrapper

466.9M18](/packages/sebastianfeldmann-git)[laminas/laminas-coding-standard

Laminas Coding Standard

331.7M534](/packages/laminas-laminas-coding-standard)[igorsgm/laravel-git-hooks

🪝• Efficiently manage Git hooks in Laravel projects. Enhance code quality, save time on reviews, and prevent bugs from entering your repository.

2931.7k1](/packages/igorsgm-laravel-git-hooks)[bernardosilva/git-hooks-php

Composer git-hook package with hooks for your php projects.

2516.7k1](/packages/bernardosilva-git-hooks-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
