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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cuonggt/hooky

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

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 today

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

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

1172d 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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.1k](/packages/friendsofphp-php-cs-fixer)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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