PHPackages                             zloesabo/githooks - 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. zloesabo/githooks

AbandonedArchivedComposer-plugin

zloesabo/githooks
=================

Git Hooks manager

06PHP

Since Jun 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ZloeSabo/GitHook)[ Packagist](https://packagist.org/packages/zloesabo/githooks)[ RSS](/packages/zloesabo-githooks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#git-hooks-for-php)

### Description

[](#description)

Tired of commiting files with syntax errors all over again? Got var\_dump pushed to production once again? Use this library to perform checks every time you commit something.

### Usage

[](#usage)

1. install this package with composer

```
composer require zloesabo/githooks

```

2. (optional) modify your project's composer.json "extra" section to include your custom hooks

```
"extra": {
    "git-hooks": [
        "src/Prefix/HookDirectory",
        "@default"
    ]
}
```

You can also omit this to use default hooks

3. (optional) Write some custom hooks
    Your hooks must implement [HookInterface](Hook/HookInterface.php) to be loaded by hook loader.

### TODO's

[](#todos)

Tests
Different hook types
PHP &lt; 5.4
Take care of existing hooks during install

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/a6699356a626b181cddefbd8c27fdbd9a76f243a7ea28049f5fe8ae0733572aa?d=identicon)[ZloeSabo](/maintainers/ZloeSabo)

### Embed Badge

![Health badge](/badges/zloesabo-githooks/health.svg)

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

PHPackages © 2026

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