PHPackages                             tacone/psr-police - 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. tacone/psr-police

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

tacone/psr-police
=================

Install php-cs-fixer git hook automatically using a script

1.04(11y ago)2271MITPHP

Since Dec 31Pushed 11y ago1 watchersCompare

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

READMEChangelog (5)DependenciesVersions (7)Used By (0)

PSR Police
==========

[](#psr-police)

A handy tool to add a PHP syntax check and PSR-2 enforcement *git pre-commit hook* to your project.

Install it globally like:

```
phpcomposer global require tacone/psr-police
```

Then make sure `~/.composer/vendor/bin` is in your PATH.

From now on you can enforce PSR-2 on every commit by calling PSR Police (once per project):

```
cd /var/www/myproject
psr-police

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

Every ~1 days

Total

6

Last Release

4146d ago

Major Versions

0.4 → 1.042015-01-04

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tacone-psr-police/health.svg)

```
[![Health](https://phpackages.com/badges/tacone-psr-police/health.svg)](https://phpackages.com/packages/tacone-psr-police)
```

PHPackages © 2026

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