PHPackages                             lsbproject/php-clean-code-rules - 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. lsbproject/php-clean-code-rules

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

lsbproject/php-clean-code-rules
===============================

This repository contains the most respectful (by the author meaning) rules for linters and static code analysers

v2.0.0(5y ago)1158MITPHPPHP ^8.0

Since Jul 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/22116/php-clean-code-rules)[ Packagist](https://packagist.org/packages/lsbproject/php-clean-code-rules)[ RSS](/packages/lsbproject-php-clean-code-rules/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (4)Versions (8)Used By (0)

php-clean-code-rules
====================

[](#php-clean-code-rules)

This repository contains the most respectful (by the author meaning) rules for linters and static code analysers.

This ruleset aims to transform the code to be like it was written by a single man improving readability and security of the whole project.

It covers `psr-12`, `symfony` and a lot of modern PHP features thanks to `slevomat` project.

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

[](#installation)

```
composer require lsbproject/php-clean-code-rules --dev
```

Usage
-----

[](#usage)

Include in your project a `phpcs.xml` file with the following code:

```

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Total

7

Last Release

1884d ago

Major Versions

v1.1.0 → v2.0.02021-05-07

PHP version history (2 changes)v1.0.0PHP ^7.4

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ec5f3868bec2cabf2a93e65332064b42aaa3055a31f848332b3d8a240e5834c?d=identicon)[LSBProject](/maintainers/LSBProject)

---

Top Contributors

[![fedorenko22116](https://avatars.githubusercontent.com/u/22433371?v=4)](https://github.com/fedorenko22116 "fedorenko22116 (9 commits)")

### Embed Badge

![Health badge](/badges/lsbproject-php-clean-code-rules/health.svg)

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

###  Alternatives

[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[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)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4853.5M91](/packages/shipmonk-dead-code-detector)[tomasvotruba/cognitive-complexity

PHPStan rules to measure cognitive complexity of your classes and methods

1635.6M288](/packages/tomasvotruba-cognitive-complexity)

PHPackages © 2026

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