PHPackages                             hexanet/php-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. hexanet/php-git-hooks

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

hexanet/php-git-hooks
=====================

Git hooks for PHP projects

2.1.0(8y ago)38.9k↓35.7%1MITPHPPHP &gt;=7.1

Since Nov 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Hexanet/php-git-hooks)[ Packagist](https://packagist.org/packages/hexanet/php-git-hooks)[ RSS](/packages/hexanet-php-git-hooks/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

PHP Git Hooks
=============

[](#php-git-hooks)

[![Total Downloads](https://camo.githubusercontent.com/c75314211bf32ab93f056c8279dcfd1342dd78c29110b1303258fd1cd27605bd/68747470733a2f2f706f7365722e707567782e6f72672f686578616e65742f7068702d6769742d686f6f6b732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/hexanet/php-git-hooks) [![Latest Unstable Version](https://camo.githubusercontent.com/cb19e30b151d8b617f6a6d1c81990cbefdd4baa51e888938ffead58b634822a7/68747470733a2f2f706f7365722e707567782e6f72672f686578616e65742f7068702d6769742d686f6f6b732f762f756e737461626c652e706e67)](https://packagist.org/packages/hexanet/php-git-hooks)

Features :

- Check if composer.lock is synchronized with composer.json
- Lint
- Check and fix coding styles with PHP-CS-FIXER

[![PHP Git Hooks](screenshot.png)](screenshot.png)

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

[](#installation)

```
composer require hexanet/php-git-hooks

```

Usage
-----

[](#usage)

composer.json :

```
    "scripts": {
        "pre-update-cmd": "Hexanet\\PhpGitHooks\\Composer\\InstallHooksScript::installHooks",
        "pre-install-cmd": "Hexanet\\PhpGitHooks\\Composer\\InstallHooksScript::installHooks"
    }
```

Credits
-------

[](#credits)

Developed by [Hexanet](http://www.hexanet.fr/).

License
-------

[](#license)

[php-git-hooks](https://github.com/Hexanet/php-git-hooks) is licensed under the [MIT license](LICENSE).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 80.8% 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 ~88 days

Total

3

Last Release

2977d ago

Major Versions

v1.0.0 → v2.0.02018-03-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/168558789?v=4)[MARTIN Damien](/maintainers/martin-damien)[@martin-damien](https://github.com/martin-damien)

![](https://avatars.githubusercontent.com/u/7150898?v=4)[alioguz](/maintainers/alioguz)[@alioguz](https://github.com/alioguz)

---

Top Contributors

[![notFloran](https://avatars.githubusercontent.com/u/523981?v=4)](https://github.com/notFloran "notFloran (21 commits)")[![nclsHart](https://avatars.githubusercontent.com/u/833625?v=4)](https://github.com/nclsHart "nclsHart (4 commits)")[![martin-damien](https://avatars.githubusercontent.com/u/168558789?v=4)](https://github.com/martin-damien "martin-damien (1 commits)")

---

Tags

gitphp

### Embed Badge

![Health badge](/badges/hexanet-php-git-hooks/health.svg)

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.1k5.2k](/packages/shlinkio-shlink)

PHPackages © 2026

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