PHPackages                             croct/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. croct/coding-standard

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

croct/coding-standard
=====================

A set of Code Sniffer rules applied to all Croct PHP projects.

0.4.5(2mo ago)390[2 issues](https://github.com/croct-tech/coding-standard-php/issues)[2 PRs](https://github.com/croct-tech/coding-standard-php/pulls)5proprietaryPHPPHP ^8.5CI failing

Since May 2Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/croct-tech/coding-standard-php)[ Packagist](https://packagist.org/packages/croct/coding-standard)[ Docs](https://github.com/croct-tech/coding-standard-php)[ RSS](/packages/croct-coding-standard/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (9)Versions (15)Used By (5)

 [ ![Croct](https://camo.githubusercontent.com/f242d9867848e6f22ae9decbd35452f3ffe4198d73f25847daea8cfa34b3e2fc/68747470733a2f2f63646e2e63726f63742e696f2f6272616e642f6c6f676f2f7265706f2d69636f6e2d677265656e2e737667) ](https://croct.com)
 **PHP Coding Standard**
 A set of [Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules applied to all Croct PHP projects.

 [![Language](https://camo.githubusercontent.com/683d740a6b0a655690bccb292d645fa2bfedb6576d4ec4f01c614d96dea8ff4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e67756167652d5048502d626c7565)](https://camo.githubusercontent.com/683d740a6b0a655690bccb292d645fa2bfedb6576d4ec4f01c614d96dea8ff4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e67756167652d5048502d626c7565) [![Build](https://github.com/croct-tech/coding-standard-php/actions/workflows/validate-branch.yaml/badge.svg)](https://github.com/croct-tech/coding-standard-php/actions/workflows/validate-branch.yaml) [![License](https://camo.githubusercontent.com/b8cadaa967891081f8f165695470689986c028821dd8a040132f6e661795dc0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565)](https://camo.githubusercontent.com/b8cadaa967891081f8f165695470689986c028821dd8a040132f6e661795dc0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565)

 [📦 Releases](https://github.com/croct-tech/coding-standard-php/releases) · [🐞 Report Bug](https://github.com/croct-tech/coding-standard-php/issues) · [✨ Request Feature](https://github.com/croct-tech/coding-standard-php/issues)

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

[](#installation)

We recommend using the package manager [Composer](https://getcomposer.org) to install the package:

```
composer require croct/coding-standard
```

Basic usage
-----------

[](#basic-usage)

Run the following command to check if the project adheres to the coding standard:

```
./vendor/bin/phpcs
```

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

[](#contributing)

Contributions to the package are always welcome!

- Report any bugs or issues on the [issue tracker](https://github.com/croct-tech/coding-standard-php/issues).
- For major changes, please [open an issue](https://github.com/croct-tech/coding-standard-php/issues) first to discuss what you would like to change.
- Please make sure to update tests as appropriate.

Testing
-------

[](#testing)

Before running the test suites, the development dependencies must be installed:

```
composer install
```

Then, to run all tests:

```
composer test
```

License
-------

[](#license)

This library is licensed under the [MIT license](LICENSE).

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance75

Regular maintenance activity

Popularity17

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 81.9% 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 ~199 days

Recently: every ~351 days

Total

12

Last Release

79d ago

PHP version history (5 changes)0.1.0PHP ^7.4

0.3.0PHP ^7.4 || ^8.0

0.3.1PHP ^8.0

0.4.0PHP ^8.1

0.4.5PHP ^8.5

### Community

Maintainers

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

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (312 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (33 commits)")[![marcospassos](https://avatars.githubusercontent.com/u/943036?v=4)](https://github.com/marcospassos "marcospassos (14 commits)")[![denis-rossati](https://avatars.githubusercontent.com/u/74881282?v=4)](https://github.com/denis-rossati "denis-rossati (9 commits)")[![amorimjuliana](https://avatars.githubusercontent.com/u/11818859?v=4)](https://github.com/amorimjuliana "amorimjuliana (8 commits)")[![Fryuni](https://avatars.githubusercontent.com/u/11063910?v=4)](https://github.com/Fryuni "Fryuni (4 commits)")[![priscrb](https://avatars.githubusercontent.com/u/16469917?v=4)](https://github.com/priscrb "priscrb (1 commits)")

---

Tags

code-stylecoding-standardphpphpcsstandardcodingcroct

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[drupal/coder

Coder is a library to review Drupal code.

3045.9M584](/packages/drupal-coder)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

76842.7k94](/packages/consistence-coding-standard)

PHPackages © 2026

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