PHPackages                             ob/hooker - 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. ob/hooker

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

ob/hooker
=========

Sensible git hooks for your projects

2122PHP

Since Dec 19Pushed 11y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Hooker
======

[](#hooker)

Sensible git hooks for your projects.

[![Build Status](https://camo.githubusercontent.com/592e0e9e8fef0e4b5f1930d17304a3849ab40c25eb3070b0e0d2c8dda0a4d7e2/68747470733a2f2f7472617669732d63692e6f72672f6d617263617562652f686f6f6b65722e737667)](https://travis-ci.org/marcaube/hooker) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3c80f35ec8ff0b2ac6b16dcdf47efde5b59c3502a92e7828f218030a85c06c02/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d617263617562652f686f6f6b65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/marcaube/hooker/?branch=master) [![SensioLabsInsight](https://camo.githubusercontent.com/75e86695d88fb64f4f4eba4d5636bac4050ed967ad5288eefdda14462fcc9560/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39636238313331332d373132362d343963622d383235372d3834326366363131616231652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/9cb81313-7126-49cb-8257-842cf611ab1e) [!\[Gitter\](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/marcaube/hooker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

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

[](#installation)

- Execute `$ composer require --dev ob/hooker=1.0.x-dev`
- Copy the hooker config `cp vendor/ob/hooker/hooker.yml.dist hooker.yml.dist` and tweak it to suit your needs
- Add the command to your project's `.git/hooks/pre-commit` hook

```
#!/bin/sh

./vendor/bin/hooker hook:pre-commit
```

- Finally, make it executable

```
$ chmod +x .git/hooks/pre-commit
```

License
-------

[](#license)

Hooker is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/f01bad6d5610064eacdc319d5df11b659614ef3f05ed534abb4565d5a477a890?d=identicon)[marcaube](/maintainers/marcaube)

---

Top Contributors

[![marcaube](https://avatars.githubusercontent.com/u/1478986?v=4)](https://github.com/marcaube "marcaube (12 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

![Health badge](/badges/ob-hooker/health.svg)

```
[![Health](https://phpackages.com/badges/ob-hooker/health.svg)](https://phpackages.com/packages/ob-hooker)
```

PHPackages © 2026

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