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

ActiveLibrary

piotrpasich/code-quality-threshold
==================================

v0.2(11y ago)371.9k6[1 PRs](https://github.com/piotrpasich/CodeQualityThreshold/pulls)MITPHP

Since Feb 13Pushed 10y ago4 watchersCompare

[ Source](https://github.com/piotrpasich/CodeQualityThreshold)[ Packagist](https://packagist.org/packages/piotrpasich/code-quality-threshold)[ RSS](/packages/piotrpasich-code-quality-threshold/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

Code Quality Threshold
======================

[](#code-quality-threshold)

This extension is purposed to run every necessary tool to check the code against violation from composer (ex. tools - PHP Mess Detector, PHP Code Sniffer, PHP Dead Code Detector, PHP Copy Paste).

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

[](#installation)

```
composer require piotrpasich/code-quality-threshold:dev-master --dev

```

Configuration
-------------

[](#configuration)

To your composer.json file you might add

```
"scripts": {
    "quality-test": [
        "piotrpasich\\CodeQualityThreshold\\Composer\\ScriptHandler::checkThresholds"
    ]
},

```

And execute the command

```
composer quality-test

```

You can also add this script to already existing scripts like `post-update-cmd`.

Reports
-------

[](#reports)

If the test throws an exception you can always ask for the report:

```
composer quality-test -v

```

Advanced configuration
----------------------

[](#advanced-configuration)

This plugin checks the app folder by default, but you can always change this behavior by creating yml file. This might be placed wherever you want, ex. app/Config/cqt.yml

Then you need to add to your composer.json file the extra option:

```
"extra": {
    "cqt-parameters": {
        "file": "app/Config/cqt.yml"
    }
}

```

The example yml file might look like:

```
phpmd:
    class: piotrpasich\CodeQualityThreshold\Tool\Phpmd
    options:
        threshold: 42
        directory: src
        rules: Config/Phpmd/ruleset.xml

phpcs:
    class: piotrpasich\CodeQualityThreshold\Tool\Phpcs
    options:
        threshold: 42
        rules: Config/Phpcs/ruleset.xml
        directory: src

phpcpd:
    class: piotrpasich\CodeQualityThreshold\Tool\Phpcpd
    options:
        threshold: 42
        directory: src

Phpdcd:
    class: piotrpasich\CodeQualityThreshold\Tool\Phpdcd
    options:
        directory: src
        threshold: 21

```

Adding new tools
----------------

[](#adding-new-tools)

To add new tool you need to specify new record in yml file (look at the Advanced configuration chapter) and create a class extending Tool abstract class from the plugin.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

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

Every ~1 days

Total

2

Last Release

4111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/310cddbb4fcfdcff55a24d6e0845b9e30db0cb0826d3e7ec993a6c7df5a7fcdf?d=identicon)[piotrpasich](/maintainers/piotrpasich)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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