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.8k↓33.3%1MITPHPPHP &gt;=7.1

Since Nov 13Pushed 7y ago2 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 1mo ago

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 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 84% 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

2931d ago

Major Versions

v1.0.0 → v2.0.02018-03-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/d769d5e2e072a9119e49d0e12841d37fcd53913e18271b87f10959daccc302a8?d=identicon)[martin-damien](/maintainers/martin-damien)

![](https://www.gravatar.com/avatar/7c6e41db5dc7149e2786d602be8ced473d1d41cbbbbf54fb1f5cf61555980e3b?d=identicon)[alioguz](/maintainers/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)")

---

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

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)[shlinkio/shlink

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

4.8k4.3k](/packages/shlinkio-shlink)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)

PHPackages © 2026

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