PHPackages                             chiiya/code-style-php - 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. chiiya/code-style-php

ActiveLibrary[Testing &amp; Quality](/categories/testing)

chiiya/code-style-php
=====================

Linting configurations for PHP projects

3.3.0(5mo ago)06.4k↓46.9%1[2 PRs](https://github.com/chiiya/code-style-php/pulls)8MITPHPPHP ^8.2CI failing

Since Feb 22Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/chiiya/code-style-php)[ Packagist](https://packagist.org/packages/chiiya/code-style-php)[ Docs](https://github.com/chiiya/code-style-php)[ GitHub Sponsors](https://github.com/chiiya)[ RSS](/packages/chiiya-code-style-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (42)Used By (8)

 [![](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://php.net/)

 **Code Style PHP
--------------

[](#code-style-php)**  Code style configurations for PHP projects using a combination of PHP-CS-Fixer, ECS and Rector.

 [ ![Latest Version on Packagist](https://camo.githubusercontent.com/71b1b4fdf18365d16006cc36944eae3bd3896a6e717011d411a49fe7eb9fe328/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696979612f636f64652d7374796c652d7068702e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/chiiya/code-style-php) [ ![GitHub Code Style Action Statust](https://camo.githubusercontent.com/2c0f64db0546e4a8c151ce9878f312e57c07900c6b8ce00698f10d0ab2bb3ab0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6368696979612f636f64652d7374796c652d7068702f4c696e743f6c6162656c3d636f64652532307374796c65) ](https://github.com/chiiya/code-style-php/actions?query=workflow%3ALint+branch%3Amaster) [ ![Total Downloads](https://camo.githubusercontent.com/f69e2a5b4c9d484b5c9865826d189220010e7c218e18d97cd754e4243a0e40e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696979612f636f64652d7374796c652d7068702e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/chiiya/code-style-php)  **[index](#index) · [installation](#installation) · [usage](#usage)**

Index
-----

[](#index)

```
> Installation .....................................................................
> Usage ............................................................................
```

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

[](#installation)

Looking for an integration with Laravel? Check out [laravel-code-style](https://github.com/chiiya/laravel-code-style).

Install the package using composer:

```
composer require chiiya/code-style-php --dev
```

Usage
-----

[](#usage)

Simply import the rules in your PHP-CS-Fixer, ECS and Rector config files. Have a look at the `.php-cs-fixer.dist.php`, `ecs.php` and `rector.php` in this repository for an example.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance70

Regular maintenance activity

Popularity25

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 70.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 ~36 days

Recently: every ~128 days

Total

39

Last Release

172d ago

Major Versions

1.3.0 → 2.0.02022-03-09

2.18.0 → 3.0.02024-06-06

PHP version history (3 changes)1.0.0PHP ^8.0

2.0.0PHP ^8.1

3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/34a7cd6c6e8c5fd30b6cd28645c3384f343fc90d10b0df8c80c7ad424e3dba2a?d=identicon)[chiiya](/maintainers/chiiya)

---

Top Contributors

[![chiiya](https://avatars.githubusercontent.com/u/15029301?v=4)](https://github.com/chiiya "chiiya (52 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")[![Schnoop](https://avatars.githubusercontent.com/u/1263407?v=4)](https://github.com/Schnoop "Schnoop (1 commits)")

---

Tags

code-styleecslintingphpphp-cs-fixerrectorCode stylerectorphp-cs-fixerlintingesc

### Embed Badge

![Health badge](/badges/chiiya-code-style-php/health.svg)

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

###  Alternatives

[erickskrauch/php-cs-fixer-custom-fixers

A set of custom fixers for PHP-CS-Fixer

302.1M18](/packages/erickskrauch-php-cs-fixer-custom-fixers)[mrpunyapal/rector-pest

Rector upgrade rules for Pest - refactoring and best practices for Pest testing framework

4717.6k18](/packages/mrpunyapal-rector-pest)

PHPackages © 2026

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