PHPackages                             phpcq/coding-standard - 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. phpcq/coding-standard

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

phpcq/coding-standard
=====================

PHP code quality project coding standard

2.1.2(5y ago)138.9k3[4 issues](https://github.com/phpcq/coding-standard/issues)[1 PRs](https://github.com/phpcq/coding-standard/pulls)16BSD-3-Clause and MITPHPPHP &gt;=5.6

Since Jan 11Pushed 5y ago4 watchersCompare

[ Source](https://github.com/phpcq/coding-standard)[ Packagist](https://packagist.org/packages/phpcq/coding-standard)[ Docs](http://phpcq.org/)[ GitHub Sponsors](https://github.com/discordier)[ GitHub Sponsors](https://github.com/dmolineus)[ RSS](/packages/phpcq-coding-standard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (10)Used By (16)

[![Build Status](https://camo.githubusercontent.com/e21620b8ad6af56964e38e23549969e86d977dfa14a76cff4974a54aecc37ad2/68747470733a2f2f7472617669732d63692e6f72672f70687063712f636f64696e672d7374616e646172642e7376673f7374796c653d666c61742d737175617265266c6162656c3d737461626c65)](https://travis-ci.org/phpcq/coding-standard)[![Latest Version tagged](https://camo.githubusercontent.com/50ab14aa6ecdc62fb899e8114e04b052f71732e5d33594e02e4edfc03eccc8a8/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f70687063712f636f64696e672d7374616e646172642e7376673f7374796c653d666c61742d737175617265)](https://github.com/phpcq/coding-standard/tags)[![Latest Version on Packagist](https://camo.githubusercontent.com/b629da7628c5075b6d793ecfe20029e0b11d0689da37a354deaf2b1216e07a68/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70687063712f636f64696e672d7374616e646172642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpcq/coding-standard)[![Installations via composer per month](https://camo.githubusercontent.com/3221f4b2bcbfebb689d8a3a7d44c1046f11118a253e44a5fc4be4c3afcf2d825/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f70687063712f636f64696e672d7374616e646172642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpcq/coding-standard)

Coding Standards
================

[](#coding-standards)

This repository contains the PHPCQ coding standard definitions and style checker rules.

The rules are for [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) and [phpmd](https://github.com/phpmd/phpmd).

Usage
-----

[](#usage)

The most convenient usage is to use via [phpcq/phpcq](https://github.com/phpcq/phpcq). Simply put the following into your projects `build.default.properties` file:

```
phpcs.standard=${basedir}/vendor/phpcq/coding-standard/phpcs/PhpCodeQuality/ruleset.xml
phpmd.ruleset=${basedir}/vendor/phpcq/coding-standard/phpmd/ruleset.xml

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 76.3% 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 ~260 days

Recently: every ~372 days

Total

9

Last Release

2062d ago

Major Versions

1.0.0 → 2.0.02016-02-25

PHP version history (2 changes)1.0.0PHP &gt;=5.3

2.1.0PHP &gt;=5.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44649522?v=4)[xtra](/maintainers/xtra)[@xtra](https://github.com/xtra)

![](https://avatars.githubusercontent.com/u/8189209?v=4)[netzmacht](/maintainers/netzmacht)[@netzmacht](https://github.com/netzmacht)

---

Top Contributors

[![discordier](https://avatars.githubusercontent.com/u/940331?v=4)](https://github.com/discordier "discordier (87 commits)")[![baumannsven](https://avatars.githubusercontent.com/u/2493263?v=4)](https://github.com/baumannsven "baumannsven (21 commits)")[![tristanlins](https://avatars.githubusercontent.com/u/343404?v=4)](https://github.com/tristanlins "tristanlins (5 commits)")[![dmolineus](https://avatars.githubusercontent.com/u/1186266?v=4)](https://github.com/dmolineus "dmolineus (1 commits)")

### Embed Badge

![Health badge](/badges/phpcq-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/phpcq-coding-standard/health.svg)](https://phpackages.com/packages/phpcq-coding-standard)
```

###  Alternatives

[slevomat/coding-standard

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

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[magento/magento-coding-standard

A set of Magento specific PHP CodeSniffer rules.

37113.4M299](/packages/magento-magento-coding-standard)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)

PHPackages © 2026

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