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

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

chiiya/laravel-code-style
=========================

Code style and quality configurations for Laravel projects

3.3.0(3mo ago)17.5k↓34.6%1[1 PRs](https://github.com/chiiya/laravel-code-style/pulls)11MITPHPPHP ^8.2CI passing

Since Mar 9Pushed 1w ago1 watchersCompare

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

READMEChangelogDependencies (16)Versions (37)Used By (11)

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

 **Laravel Code Style
------------------

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

 [ ![Latest Version on Packagist](https://camo.githubusercontent.com/ec1609354ddd3f92dd152434502aaa885a090e6dd410c5640aad95c450334abf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696979612f6c61726176656c2d636f64652d7374796c652e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/chiiya/laravel-code-style) [ ![GitHub Code Style Action Status](https://camo.githubusercontent.com/ba918417bad5a0d3232eecb899df71334563208f4ba4e698dfc095c9c418df9e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6368696979612f6c61726176656c2d636f64652d7374796c652f6c696e743f6c6162656c3d636f64652532307374796c65) ](https://github.com/chiiya/laravel-code-style/actions?query=workflow%3Alint+branch%3Amaster) [ ![Total Downloads](https://camo.githubusercontent.com/12d65deae117c0a8afa1a6eb0f01e29fbe78f1b269f8ccb47ffbccf8e8381cc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696979612f6c61726176656c2d636f64652d7374796c652e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/chiiya/laravel-code-style)  **[index](#index) · [installation](#installation) · [usage](#usage)**

Index
-----

[](#index)

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

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

[](#installation)

Install the package using composer. When prompted to create a GrumPHP configuration file, choose "No".

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

Usage
-----

[](#usage)

```
# Publish config files
php artisan vendor:publish --tag="code-style-config"
```

Next, adjust the `ecs.php`, `.php-cs-fixer.dist.php`, `rector.php` and `phpstan.neon` files that have just been created in your project folder to suit your project structure.

After publishing the configuration files, you may have to re-initialize GrumPHP:

```
php ./vendor/bin/grumphp git:deinit
php ./vendor/bin/grumphp git:init
```

The GrumPHP config includes tasks for PHP-CS-Fixer, ECS and TLint by default. Tasks for `rector`and `phpstan` are not included, since they can take a long time. You may choose to execute them separately instead (for example, in a CI pipeline), or add them to your GrumPHP config if you're fine with the longer waiting times:

Example for `grumphp.yml`

```
grumphp:
  tasks:
    # ...
    rector: ~
    phpstan: ~
```

Example for a CI config (call these somewhere in your pipeline):

```
./vendor/bin/ecs check
./vendor/bin/php-cs-fixer fix --dry-run --diff
./vendor/bin/rector process --dry-run
./vendor/bin/tlint lint
./vendor/bin/phpstan analyse --memory-limit=2G
```

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance91

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 62.1% 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 ~57 days

Recently: every ~185 days

Total

27

Last Release

93d ago

Major Versions

1.9.0 → 2.0.02023-02-16

2.3.0 → 3.0.02024-06-06

PHP version history (2 changes)1.0.0PHP ^8.1

2.3.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15029301?v=4)[Elisha](/maintainers/chiiya)[@chiiya](https://github.com/chiiya)

---

Top Contributors

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

---

Tags

laravelchiiyalaravel-code-style

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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