PHPackages                             chiron/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. [Database &amp; ORM](/categories/database)
4. /
5. chiron/coding-standard

ActivePhpcodesniffer-standard[Database &amp; ORM](/categories/database)

chiron/coding-standard
======================

A common coding standard for Chiron's PHP libraries.

3.0.12.1(3y ago)39.0k[1 issues](https://github.com/ncou/coding-standard/issues)20MITPHPPHP ^8.0 || ^8.1

Since Aug 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ncou/coding-standard)[ Packagist](https://packagist.org/packages/chiron/coding-standard)[ GitHub Sponsors](https://github.com/ncou)[ RSS](/packages/chiron-coding-standard/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (6)Versions (23)Used By (20)

Chiron PHP Coding Standard
==========================

[](#chiron-php-coding-standard)

[![Latest Version on Packagist](https://camo.githubusercontent.com/96087489129b483486c9c7b69999c424f3042bc8a2591d725c14105f01cddc9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636869726f6e2f636f64696e672d7374616e646172642e737667)](https://packagist.org/packages/chiron/coding-standard)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/da66f80c5683f217ab624a85b22b3b3e1aa79e6571e662fc1f6c9bbbbe23c24b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636869726f6e2f636f64696e672d7374616e646172642e737667)](https://packagist.org/packages/chiron/coding-standard)

**Chiron PHP Coding Standard based on PSR-12, Doctrine, and Slevomat Coding Standards**

Table of Contents
-----------------

[](#table-of-contents)

- [Introduction](#introduction)
- [Install](#install)
- [Usage](#basic-usage)
- [Versioning](#versioning)
- [Change Log](#change-log)
- [Contributing](#contributing)
- [Support](#support)
- [Credits](#credits)
- [License](#license)

Introduction
------------

[](#introduction)

This library provides the Chiron Coding Standard rules for [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) (`phpcs`). It is inspired by and built upon the [Doctrine Coding Standard](https://github.com/doctrine/coding-standard) and the [Slevomat Coding Standard](https://github.com/slevomat/coding-standard).

Install
-------

[](#install)

The only thing you need before getting started is [Composer](https://getcomposer.org).

### Install PHP Coding Standard:

[](#install-php-coding-standard)

To install the latest version of this library, run the command below:

```
$ composer require chiron/coding-standard
```

The latest version of PHP Coding Standard requires PHP 7.1 at least.

Usage
-----

[](#usage)

Just add the default `phpcs.xml.dist` file (it can be found in the root directory) to your project and you are ready to use the Chiron Coding Standard when running `phpcs`.

Advanced
--------

[](#advanced)

If you need to suppress some errors, use the following tags in your php code.

```
// phpcs:ignoreFile

// phpcs:ignore

// phpcs:disable
// phpcs:enable
```

[Ignoring parts of a file](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file)
[Ignoring files and folders](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-files-and-folders)

Versioning
----------

[](#versioning)

This library follows [SemVer](https://semver.org/) with following rules.

Coding Standard document should be considered the source of truth and main object of SemVer.

- `MAJOR` version will be incremented if new rules are added to the document.
- `MINOR` version will be incremented if new sniffs are implemented to check for existing described rules.
- `PATCH` version will be incremented for bug fixing - fixing a bug is considered everything which does not conform to the document - this may even lead to (temporarily) disabling an existing sniff - or part of it, until a better check is available or it is properly fixed.

The implementation of the automatic checks (both custom sniffs and the ruleset.xml file) are not subject to the SemVer and may change over time to accommodate changes in PHP\_CodeSniffer and provided default sniffs, which are used also by this standard.

Recommended dependency on this package is on `MINOR` version (e.g. `~1.0.0`), which means effectively:

- No new rules will be added.
- New automatic checks may be added.
- You get fixes for existing automatic checks, or some of them may be disabled, if regressions are found.

Change Log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on recent changes.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Support
-------

[](#support)

Please see [SUPPORT](SUPPORT.md) for details.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see the [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity77

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 ~48 days

Recently: every ~34 days

Total

22

Last Release

1458d ago

Major Versions

1.0 → 2.02019-08-03

2.3 → 3.02020-08-03

PHP version history (4 changes)1.0PHP ^7.1.0

3.0PHP ^7.2 || ^8.0

3.0.9PHP ^8.0|^8.1

3.0.10PHP ^8.0 || ^8.1

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpcsPHP\_CodeSniffercodestyledoctrinestandardcodesnifferPHPCodeSnifferrulessniffercodingcssniffschecksCoding Standardpsr-12rulesetpsr12slevomatchironruleset.xml

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/coding-standard

The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.

31914.1M739](/packages/doctrine-coding-standard)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2137.0k10](/packages/leroy-merlin-br-coding-standard)

PHPackages © 2026

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