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

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

legalthings/php-code-quality
============================

Quality assurance toolchain

v0.1.2(10y ago)111.9k[1 issues](https://github.com/legalthings/php-code-quality/issues)3MIT

Since Jun 12Pushed 8y ago8 watchersCompare

[ Source](https://github.com/legalthings/php-code-quality)[ Packagist](https://packagist.org/packages/legalthings/php-code-quality)[ RSS](/packages/legalthings-php-code-quality/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (4)Used By (3)

PHP code quality
================

[](#php-code-quality)

Coding standard
---------------

[](#coding-standard)

Please read the [Legal Things PHP coding standard](https://github.com/legalthings/php-code-quality/blob/master/STANDARD.md#readme).

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

[](#installation)

All PHP projects of Legal Things should include this package. It can be installed through composer.

```
composer require --dev legalthings/php-code-quality

```

Toolchain
---------

[](#toolchain)

### Codeception

[](#codeception)

[Codeception](http://codeception.com/) is BDD-style PHP testing build on PHPUnit. It supports Unit testing, API testing and Acceptance testing.

```
bin/codecept

```

### vfsStream

[](#vfsstream)

[vfsStream](https://github.com/mikey179/vfsStream) is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system.

### PHP\_CodeSniffer

[](#php_codesniffer)

[phpcs](https://github.com/squizlabs/PHP_CodeSniffer) tokenises PHP files and detects violations of a defined set of coding standards. It is an essential development tool that ensures your code remains clean and consistent. This package comes with a custom ruleset which embodies the Legal Things PHP coding standard.

```
bin/phpcs . --standard=vendor/legalthings/php-code-quality --ignore=/bin/,/vendor/,/tests/

```

Versions
--------

[](#versions)

Always use [sementic versioning](http://semver.org/). With projects, the continues integration will automatically update patch version. When introducing a new feature or deprecating something you should update the minor version in `composer.json`.

**Do not introduce large changes or new features, while breaking backwards compatibility.** For a new major version, only cleanup tasks, specifically removing deprecated code, should be done. Manually update the major version in `composer.json`.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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 ~45 days

Total

3

Last Release

3949d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3379a93d51305df325df9045e1a8b205d195e4e8c01312dff53a000ee79002eb?d=identicon)[jasny](/maintainers/jasny)

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

---

Top Contributors

[![jasny](https://avatars.githubusercontent.com/u/100821?v=4)](https://github.com/jasny "jasny (15 commits)")[![moesjarraf](https://avatars.githubusercontent.com/u/5793511?v=4)](https://github.com/moesjarraf "moesjarraf (1 commits)")

### Embed Badge

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

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

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k134.0M2.3k](/packages/slevomat-coding-standard)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M343](/packages/drupal-core-dev)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15312.0M36](/packages/magento-magento2-functional-testing-framework)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13191.0k8](/packages/youwe-testing-suite)[hyva-themes/hyva-coding-standard

A set of Hyvä specific PHP CodeSniffer rules extending the Magento Coding Standard

2927.5k](/packages/hyva-themes-hyva-coding-standard)

PHPackages © 2026

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