PHPackages                             adam-paterson/githook - 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. adam-paterson/githook

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

adam-paterson/githook
=====================

PHP Based git hooks

1.0.0(10y ago)1191MITPHPPHP &gt;=5.5.0

Since Nov 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/adam-paterson/githook)[ Packagist](https://packagist.org/packages/adam-paterson/githook)[ RSS](/packages/adam-paterson-githook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (3)Used By (0)

GitHook
=======

[](#githook)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bb919d6dd7d9ff950265b9167b70aebacc7380d49847db52e95e11e599a49752/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6164616d2d7061746572736f6e2f676974486f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adam-paterson/githook)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/717c6dc8e41255714602e85efee995d87daa807fb7cb8bb253de08a788b5a1ff/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6164616d2d7061746572736f6e2f676974686f6f6b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/adam-paterson/githook)[![Coverage Status](https://camo.githubusercontent.com/82b6ee64a050b08947ce1226b51c215f81d4dfaabb3af3698efd914faefc065c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6164616d2d7061746572736f6e2f676974686f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adam-paterson/githook/code-structure)[![Quality Score](https://camo.githubusercontent.com/1f6823249bf19bcc73fd4e636acd00d77b6a79eec2c23def05a8e7b6c700e9cf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6164616d2d7061746572736f6e2f676974686f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adam-paterson/githook)[![Total Downloads](https://camo.githubusercontent.com/8f92d6740f631f22152ee771fc8e7907dc8ac2be936025140e858e7c327344b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6164616d2d7061746572736f6e2f676974686f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adam-paterson/githook)[![Dependencies](https://camo.githubusercontent.com/f4ea40fa534b26dd54296d7b429e1b9bd678fc6ba51e3396a49a988d23dd095f/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f7068702f6164616d2d7061746572736f6e3a676974686f6f6b2f6465762d6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/php/adam-paterson:githook/dev-master)[![SensioLabs](https://camo.githubusercontent.com/9031ef877dab3866f8e478365bd70b970e278583915f7972bd800f533571b5be/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f30616639343032312d646233652d346266632d393665332d6138653737633936656237632e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/0af94021-db3e-4bfc-96e3-a8e77c96eb7c/analyses/3)

Install
-------

[](#install)

Via Composer

```
$ composer global require adam-paterson/githook
$ sudo ln -s ~/.composer/vendor/bin/githook /usr/local/bin
```

Usage
-----

[](#usage)

```
$ githook
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpspec run
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Adam Paterson](https://github.com/adam-paterson)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

3849d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/296c5969d49c166c45bbe6066cc3057d7279a1451f495186ac82de0de9455107?d=identicon)[Adam\_Paterson](/maintainers/Adam_Paterson)

---

Top Contributors

[![adam-paterson](https://avatars.githubusercontent.com/u/1008727?v=4)](https://github.com/adam-paterson "adam-paterson (20 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/adam-paterson-githook/health.svg)

```
[![Health](https://phpackages.com/badges/adam-paterson-githook/health.svg)](https://phpackages.com/packages/adam-paterson-githook)
```

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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