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 1w 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 59% 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

1838d 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

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

66766.6M1.1k](/packages/phpstan-phpstan-doctrine)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)

PHPackages © 2026

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