PHPackages                             cuonggt/hooky - 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. cuonggt/hooky

ActiveLibrary

cuonggt/hooky
=============

An opinionated git hooks tool for PHP.

v0.1.0(3y ago)21.5kMITPHPPHP ^7.3|^8.0

Since Apr 18Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

hooky
=====

[](#hooky)

Introduction
------------

[](#introduction)

**Hooky** is an opinionated git hooks tool for PHP artisan. Hooky is heavily inspired by **[husky](https://github.com/typicode/husky)** and make it simple to **lint your commit messages**, **lint code**, **run tests**, etc... when you commit or push.

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

[](#installation)

First, install Hooky into your project using the Composer package manager:

```
composer require --dev cuonggt/hooky
```

Then run the install command:

```
vendor/bin/hooky install
```

Usage
-----

[](#usage)

Add a hook:

```
vendor/bin/hooky add .hooky/pre-commit "vendor/bin/phpunit"
```

Make a commit:

```
git add .hooky/pre-commit
git commit -m "Keep calm and commit"
# `vendor/bin/phpunit` will run
```

License
-------

[](#license)

Hooky is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

1126d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/511ca83b905e928d191d304008fa0539d32c4b711eed9076fd80089481756f84?d=identicon)[cuonggt](/maintainers/cuonggt)

---

Top Contributors

[![cuonggt](https://avatars.githubusercontent.com/u/8156596?v=4)](https://github.com/cuonggt "cuonggt (21 commits)")

---

Tags

githookspre-commit

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cuonggt-hooky/health.svg)

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

###  Alternatives

[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M122](/packages/ramsey-conventional-commits)[projektgopher/whisky

A simple CLI tool for managing a project's git hooks across multiple members.

241281.3k20](/packages/projektgopher-whisky)[bernardosilva/git-hooks-php

Composer git-hook package with hooks for your php projects.

2516.7k1](/packages/bernardosilva-git-hooks-php)[felipebool/crook

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

5813.8k](/packages/felipebool-crook)

PHPackages © 2026

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