PHPackages                             contributte/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. contributte/code-rules

Abandoned → [contributte/phpstan](/?search=contributte%2Fphpstan)ArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

contributte/code-rules
======================

Codesniffer &amp; phpstan prepared configs for easy-to-use. Rewritten by contributte's authors.

v2.0.0(2y ago)411.7k13MITPHP &gt;=8.1

Since Mar 16Pushed 6mo ago3 watchersCompare

[ Source](https://github.com/contributte/code-rules)[ Packagist](https://packagist.org/packages/contributte/code-rules)[ Docs](https://github.com/contributte/code-rules)[ Fund](https://contributte.org/partners.html)[ GitHub Sponsors](https://github.com/f3l1x)[ RSS](/packages/contributte-code-rules/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (3)

[![](https://camo.githubusercontent.com/8b809d5a994f25818385086c1b5ac68fb651c3c43b8af37923c113bc53dfc853/68747470733a2f2f686561746261646765722e6e6f772e73682f6769746875622f726561646d652f636f6e74726962757474652f636f64652d72756c65732f3f646570726563617465643d31)](https://camo.githubusercontent.com/8b809d5a994f25818385086c1b5ac68fb651c3c43b8af37923c113bc53dfc853/68747470733a2f2f686561746261646765722e6e6f772e73682f6769746875622f726561646d652f636f6e74726962757474652f636f64652d72756c65732f3f646570726563617465643d31)

 [![](https://camo.githubusercontent.com/a8b1cd856d7d396fdebbe46947cc3507490acc267a02361e5e53bb7b820c95c3/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e)](https://bit.ly/ctteg) [![](https://camo.githubusercontent.com/86d6416fc04f8bcc3daa7bf881526b9953b9726b1164d05c157c8713e3a73418/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77)](https://bit.ly/cttfo) [![](https://camo.githubusercontent.com/5d170ab94e6d594609561e16fe0f9e4293968fbd4dfcfafc5e11efc1415ef09c/68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534)](https://contributte.org/partners.html)

 Website 🚀 [contributte.org](https://contributte.org) | Contact 👨🏻‍💻 [f3l1x.io](https://f3l1x.io) | Twitter 🐦 [@contributte](https://twitter.com/contributte)

Disclaimer
----------

[](#disclaimer)

⚠️This project is no longer being maintained.Composer[`contributte/code-rules`](https://packagist.org/packages/contributte/code-rules)Version[![](https://camo.githubusercontent.com/5c56a25efe3dd1b43743a5eebcdc3ea02ad467fb4770cb51e7a7b453f5ac96bb/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f636f6e74726962757474652f636f64652d72756c6573)](https://camo.githubusercontent.com/5c56a25efe3dd1b43743a5eebcdc3ea02ad467fb4770cb51e7a7b453f5ac96bb/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f636f6e74726962757474652f636f64652d72756c6573)PHP[![](https://camo.githubusercontent.com/73e8f51336ca3dc3c76c9e08656e2f5737dcdf084e9abdce617ac061ca240252/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f636f6e74726962757474652f636f64652d72756c6573)](https://camo.githubusercontent.com/73e8f51336ca3dc3c76c9e08656e2f5737dcdf084e9abdce617ac061ca240252/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f636f6e74726962757474652f636f64652d72756c6573)License[![](https://camo.githubusercontent.com/83ca3505ec5bbebffb09e980296b7cf5fbb069c93466be774a63bd106068e468/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f636f64652d72756c6573)](https://camo.githubusercontent.com/83ca3505ec5bbebffb09e980296b7cf5fbb069c93466be774a63bd106068e468/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f636f64652d72756c6573)About
-----

[](#about)

This package provided pre-configured rulesets for **PHP\_CodeSniffer** and **PHPStan** to help maintain consistent code quality across PHP projects. It included ready-to-use configurations created by Contributte authors.

Usage
-----

[](#usage)

To install the latest version of `contributte/code-rules`:

```
composer require --dev contributte/code-rules
```

Configuration Files
-------------------

[](#configuration-files)

The package included:

- **PHPStan configuration** (`paveljanda/phpstan.neon`) - Static analysis rules
- **CodeSniffer ruleset** (`paveljanda/ruleset.xml`) - Coding standard rules

Versions
--------

[](#versions)

StateBranchVersionPHPdevmaster`2.1.0``>=8.1`stablemaster`2.0.0``>=8.1`stablemaster`1.1.1``>=7.4`Development
-----------

[](#development)

This package was maintained by these authors.

[ ![](https://avatars2.githubusercontent.com/u/538058?v=3&s=80)](https://github.com/f3l1x)[ ![](https://avatars2.githubusercontent.com/u/1488874?v=3&s=80)](https://github.com/paveljanda)---

Consider to [support](https://contributte.org/partners.html) **contributte** development team. Also thank you for using this package.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance47

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% 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 ~334 days

Total

4

Last Release

934d ago

Major Versions

v1.1.1 → v2.0.02023-12-13

PHP version history (2 changes)v1.1.0PHP &gt;=7.2

v2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/538058?v=4)[Milan Šulc](/maintainers/f3l1x)[@f3l1x](https://github.com/f3l1x)

![](https://avatars.githubusercontent.com/u/1488874?v=4)[Pavel Janda](/maintainers/paveljanda)[@paveljanda](https://github.com/paveljanda)

---

Top Contributors

[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (13 commits)")[![petrparolek](https://avatars.githubusercontent.com/u/6066243?v=4)](https://github.com/petrparolek "petrparolek (2 commits)")[![paveljanda](https://avatars.githubusercontent.com/u/1488874?v=4)](https://github.com/paveljanda "paveljanda (1 commits)")

---

Tags

PHPStancodesnifferanalysisrules

### Embed Badge

![Health badge](/badges/contributte-code-rules/health.svg)

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

###  Alternatives

[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)[orrison/meliorstan

Provides PHPStan rules for improved code quality by detecting code smells and possible issues. In addition to enforcing particular naming and code style conventions to reduce bike-shedding.

1915.9k5](/packages/orrison-meliorstan)

PHPackages © 2026

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