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)1158[1 PRs](https://github.com/fedorenko22116/php-clean-code-rules/pulls)MITPHPPHP ^8.0CI passing

Since Jul 22Pushed 1w ago1 watchersCompare

[ Source](https://github.com/fedorenko22116/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 2d 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

40

—

FairBetter than 86% of packages

Maintenance64

Regular maintenance activity

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

1929d 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-doctrine

Doctrine extensions for PHPStan

67475.0M1.6k](/packages/phpstan-phpstan-doctrine)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79378.2M2.5k](/packages/phpstan-phpstan-symfony)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.3M150](/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.

5014.2M111](/packages/shipmonk-dead-code-detector)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2023.2M367](/packages/drupal-core-dev)[youwe/testing-suite

Contains Youwe's default testing packages for php.

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

PHPackages © 2026

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