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

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

wcm/git-php-hooks-library
=========================

A collection of Git PHP Hooks

v1.0.0(11y ago)1210.1k↑16.7%33MITPHPPHP &gt;=5.3

Since Jan 11Pushed 11y ago5 watchersCompare

[ Source](https://github.com/wecodemore/GitPHPHooksLibrary)[ Packagist](https://packagist.org/packages/wcm/git-php-hooks-library)[ Docs](https://github.com/wecodemore/GitPHPHooksLibrary)[ RSS](/packages/wcm-git-php-hooks-library/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (3)

Git PHP Hooks - official Library
================================

[](#git-php-hooks---official-library)

This is a set of Git PHP Hooks tasks, ready to use in conjunction with [GitPHPHooks](https://github.com/wecodemore/GitPHPHooks).

The Hooks are available in the [`src` directory](https://github.com/wecodemore/GitPHPHooksLibrary/tree/master/src)of this repo. You can read more about the naming convention [here](https://github.com/wecodemore/GitPHPHooks#naming-convention).

Install
-------

[](#install)

This repo is registered to Packagist. You can include it by adding

```
"wcm/git-php-hooks-library": "dev-master"

```

to your projects `composer.json` file.

Tasks included
--------------

[](#tasks-included)

- PHP Lint as `pre-commit` task, priority: 10
- PHP Mess Detector as `pre-push` task, priority: 10

Pull Requests
-------------

[](#pull-requests)

I am happy to accept pull requests. As it really doesn't matter (to me) what coding style you use, there's no convention forced. Just add your file, test it and send the PR. :)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4145d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ec7d6330cea83c240e92bf0356e650a0e5f847497c4f3f0e38e16b4b0755b00?d=identicon)[wecodemore](/maintainers/wecodemore)

---

Top Contributors

[![franz-josef-kaiser](https://avatars.githubusercontent.com/u/387666?v=4)](https://github.com/franz-josef-kaiser "franz-josef-kaiser (23 commits)")

---

Tags

phpgithooksgit hook

### Embed Badge

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

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

###  Alternatives

[wcm/git-php-hooks

Write git hooks with PHP, organize them on a per-project base and automatically add them

6441.1k3](/packages/wcm-git-php-hooks)[marcocesarato/php-conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata and automate versioning with semver.org and conventionalcommits.org

2511.3M109](/packages/marcocesarato-php-conventional-changelog)[felipebool/crook

Crook is a simple tool to ease your life when dealing with git hooks

5813.8k](/packages/felipebool-crook)[nilportugues/php_todo

Looks into the code using a user-defined list of to-do phrases and stops commit if the total amount increased or is above a threshold.

1210.0k](/packages/nilportugues-php-todo)

PHPackages © 2026

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