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.2.0(1y ago)15.3k↓43.9%110MITPHPPHP ^8.2CI passing

Since Mar 9Pushed 1mo 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 1mo ago

READMEChangelogDependencies (8)Versions (30)Used By (10)

 [![](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

50

—

FairBetter than 96% of packages

Maintenance70

Regular maintenance activity

Popularity26

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 63.8% 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 ~43 days

Recently: every ~87 days

Total

26

Last Release

452d 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://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 (37 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] (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

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-visit

Quickly visit any route of your Laravel app

15614.6k](/packages/spatie-laravel-visit)[christophrumpel/missing-livewire-assertions

This package adds missing livewire test assertions.

149336.0k9](/packages/christophrumpel-missing-livewire-assertions)[michiruf/laravel-http-automock

Automatically mock http requests when testing

161.0k](/packages/michiruf-laravel-http-automock)

PHPackages © 2026

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