PHPackages                             philwc/code-quality - 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. philwc/code-quality

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

philwc/code-quality
===================

Code quality pre commit hook

018PHP

Since Aug 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/philwc/code-quality)[ Packagist](https://packagist.org/packages/philwc/code-quality)[ RSS](/packages/philwc-code-quality/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

code-quality
============

[](#code-quality)

This is based on the blog post at

The quality tools are specified in composer and will be automatically downloaded.

To Use
======

[](#to-use)

Add the package as a requirement:

```
"require": {
    "philwc/code-quality": "dev-master",
}

```

Add the scripts to your root comnposer.json (If you want to be notified about the hook not being installed)

```
"scripts": {
    "pre-update-cmd": "philwc\\Hooks::checkHooks",
    "pre-install-cmd": "philwc\\Hooks::checkHooks"
}

```

Install the hook

```
rm -rf .git/hooks && ln -s ../vendor/philwc/code-quality/src/hooks ./.git/hooks

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/617110?v=4)[Phil Wright- Christie](/maintainers/philwc)[@philwc](https://github.com/philwc)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/philwc-code-quality/health.svg)

```
[![Health](https://phpackages.com/badges/philwc-code-quality/health.svg)](https://phpackages.com/packages/philwc-code-quality)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

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

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)[gong023/assert_chain

enable you to use phpunit assert with method chain

1478.9k3](/packages/gong023-assert-chain)

PHPackages © 2026

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