PHPackages                             codzo/phpcodesniffer-git-hook - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. codzo/phpcodesniffer-git-hook

ActiveTool[Testing &amp; Quality](/categories/testing)

codzo/phpcodesniffer-git-hook
=============================

GIT hook for PHP-Codesniffer

0300Shell

Since Sep 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/codzo/phpcodesniffer-git-hook)[ Packagist](https://packagist.org/packages/codzo/phpcodesniffer-git-hook)[ RSS](/packages/codzo-phpcodesniffer-git-hook/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

phpcodesniffer-git-hook
=======================

[](#phpcodesniffer-git-hook)

GIT hook for php-codesniffer

System Requirement
------------------

[](#system-requirement)

This requires git 2.9+ (June 2016).

Install
-------

[](#install)

Clone the project, then run following code in this repo directory.

```
composer install
```

During the process a new git hook will be applied globally.

Features
--------

[](#features)

Once installed, `git commit` command will trigger the check of codesniffer on your repo. If it's something codesniffer can fix it will fix the problem automatically.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d50c4f0fcf0cfd840aee71baebc79f441ea8f3a7bef4406fcd5fba97022d4cd?d=identicon)[neilfan](/maintainers/neilfan)

---

Top Contributors

[![neilfan](https://avatars.githubusercontent.com/u/709968?v=4)](https://github.com/neilfan "neilfan (20 commits)")

### Embed Badge

![Health badge](/badges/codzo-phpcodesniffer-git-hook/health.svg)

```
[![Health](https://phpackages.com/badges/codzo-phpcodesniffer-git-hook/health.svg)](https://phpackages.com/packages/codzo-phpcodesniffer-git-hook)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M359](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

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