PHPackages                             stechstudio/laravel-php-cs-fixer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. stechstudio/laravel-php-cs-fixer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stechstudio/laravel-php-cs-fixer
================================

Easily format your Laravel Code with this Configuration file and accompanying artisan command.

v3.1.0(4y ago)146718.6k↑15.8%26[3 issues](https://github.com/stechstudio/Laravel-PHP-CS-Fixer/issues)[1 PRs](https://github.com/stechstudio/Laravel-PHP-CS-Fixer/pulls)2MITPHPPHP ^7.1.3 || ^8.0

Since Dec 13Pushed 3y ago9 watchersCompare

[ Source](https://github.com/stechstudio/Laravel-PHP-CS-Fixer)[ Packagist](https://packagist.org/packages/stechstudio/laravel-php-cs-fixer)[ RSS](/packages/stechstudio-laravel-php-cs-fixer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (20)Used By (2)

Deprecated
==========

[](#deprecated)

**This package is deprecated. We encourage you to look at [Laravel Pint](https://laravel.com/docs/pint) instead.**

Laravel PHP CS Fixer
====================

[](#laravel-php-cs-fixer)

The PHP CS Fixer is maintained on GitHub at bug reports and ideas about new features are welcome there.

> The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community driven ones like the Symfony one. You can **also** define your (teams) style through configuration.

This package makes it easier than ever to use PHP CS Fixer to maintain your laravel code by providing access to it via tools that you are already familiar with. An artisan command to fix the code, and manage the configuration the way you do all the other laravel packages you use.

Features of this package
========================

[](#features-of-this-package)

- Run PHP-CS-Fixer commands via Laravel Artisan CLI.
- Laravel Code Style Configuration Used by Default.
- No need to learn a new tool.

Versions and compatibility
--------------------------

[](#versions-and-compatibility)

> **Note:** This documentation was written for Laravel 5.5.

- PHP Version: "^7.1.3 || ^8.0"
- Laravel/Lumen: "^5.4|^6.0|^7.0|^8.0"
- PHP-CS-Fixer: "^3.0.0"

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

[](#installation)

```
composer require stechstudio/laravel-php-cs-fixer

```

Configuration
-------------

[](#configuration)

The default rule configuration is in the [fixer.php](https://github.com/stechstudio/Laravel-PHP-CS-Fixer/blob/master/config/fixer.php) and is intended to match the rules used by Laravel Shift.

if you want to modify this yourself, just use artisan `php artisan vendor:publish --provider="STS\Fixer\FixerServiceProvider"`and it will put the default configuration in 'config/fixer.php'. Check the
[PHP-CS-Fixer/README](https://github.com/FriendsOfPHP/PHP-CS-Fixer#usage) for valid rules.

Usage
-----

[](#usage)

#### Fix Your Code

[](#fix-your-code)

Fix your code with Laravel Coding Standards.

Syntax:

```
$ php artisan fixer:fix [options]

```

Example:

```
Usage:
  fixer:fix [options] [--] [...]

Arguments:
  path                               The path. Can be a list of space separated paths

Options:
      --path-mode=PATH-MODE          Specify path mode (can be override or intersection). [default: "override"]
      --allow-risky=ALLOW-RISKY      Are risky fixers allowed (can be yes or no).
      --config=CONFIG                The path to a .php-cs-fixer.php file.
      --dry-run                      Only shows which files would have been modified.
      --rules=RULES                  The rules.
      --using-cache=USING-CACHE      Does cache should be used (can be yes or no).
      --cache-file=CACHE-FILE        The path to the cache file.
      --diff                         Also produce diff for each file.
      --format=FORMAT                To output results in other formats.
      --stop-on-violation            Stop execution on first violation.
      --show-progress=SHOW-PROGRESS  Type of progress indicator (none, dots).
  -h, --help                         Display help for the given command. When no command is given display help for the list command
  -q, --quiet                        Do not output any message
  -V, --version                      Display this application version
      --ansi                         Force ANSI output
      --no-ansi                      Disable ANSI output
  -n, --no-interaction               Do not ask any interactive question
      --env[=ENV]                    The environment the command should run under
  -v|vv|vvv, --verbose               Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

```

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity52

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 75.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 ~101 days

Recently: every ~176 days

Total

16

Last Release

1558d ago

Major Versions

v0.0.1 → v1.0.02018-06-27

v1.3.2 → v2.0.02019-10-10

v2.3.0 → v3.0.02021-07-01

PHP version history (4 changes)v0.0.1PHP &gt;=7.0 &lt;7.3

v1.1.0PHP &gt;=7.0 &lt;=7.3

v1.1.1PHP &gt;=7.0

v3.0.0PHP ^7.1.3 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![bubba-h57](https://avatars.githubusercontent.com/u/603630?v=4)](https://github.com/bubba-h57 "bubba-h57 (67 commits)")[![vokamut](https://avatars.githubusercontent.com/u/4266448?v=4)](https://github.com/vokamut "vokamut (2 commits)")[![fridzema](https://avatars.githubusercontent.com/u/8180660?v=4)](https://github.com/fridzema "fridzema (2 commits)")[![jszobody](https://avatars.githubusercontent.com/u/203749?v=4)](https://github.com/jszobody "jszobody (2 commits)")[![Shawn4easy](https://avatars.githubusercontent.com/u/9078911?v=4)](https://github.com/Shawn4easy "Shawn4easy (2 commits)")[![stasadev](https://avatars.githubusercontent.com/u/24270994?v=4)](https://github.com/stasadev "stasadev (2 commits)")[![lloricode](https://avatars.githubusercontent.com/u/8251344?v=4)](https://github.com/lloricode "lloricode (1 commits)")[![necenzurat](https://avatars.githubusercontent.com/u/145449?v=4)](https://github.com/necenzurat "necenzurat (1 commits)")[![rankarpan](https://avatars.githubusercontent.com/u/9264092?v=4)](https://github.com/rankarpan "rankarpan (1 commits)")[![repat](https://avatars.githubusercontent.com/u/516807?v=4)](https://github.com/repat "repat (1 commits)")[![samrook](https://avatars.githubusercontent.com/u/26875613?v=4)](https://github.com/samrook "samrook (1 commits)")[![shaffe-fr](https://avatars.githubusercontent.com/u/3834222?v=4)](https://github.com/shaffe-fr "shaffe-fr (1 commits)")[![vintagesucks](https://avatars.githubusercontent.com/u/13335308?v=4)](https://github.com/vintagesucks "vintagesucks (1 commits)")[![davidcochrum](https://avatars.githubusercontent.com/u/10524697?v=4)](https://github.com/davidcochrum "davidcochrum (1 commits)")[![flemzord](https://avatars.githubusercontent.com/u/1952914?v=4)](https://github.com/flemzord "flemzord (1 commits)")[![TahiriAbdou](https://avatars.githubusercontent.com/u/2815449?v=4)](https://github.com/TahiriAbdou "TahiriAbdou (1 commits)")[![fsicurezza](https://avatars.githubusercontent.com/u/17459178?v=4)](https://github.com/fsicurezza "fsicurezza (1 commits)")[![V13Axel](https://avatars.githubusercontent.com/u/2779682?v=4)](https://github.com/V13Axel "V13Axel (1 commits)")

---

Tags

standardslaravelfixerlumenartisancodingdevelopphp-cs-fixer

### Embed Badge

![Health badge](/badges/stechstudio-laravel-php-cs-fixer/health.svg)

```
[![Health](https://phpackages.com/badges/stechstudio-laravel-php-cs-fixer/health.svg)](https://phpackages.com/packages/stechstudio-laravel-php-cs-fixer)
```

###  Alternatives

[jubeki/laravel-code-style

Combine Custom Fixers with the ruleset of Laravel Pint to fix your code style in Laravel Applications/Packages.

56521.7k8](/packages/jubeki-laravel-code-style)[kra8/laravel-snowflake

Snowflake for Laravel and Lumen.

188402.3k6](/packages/kra8-laravel-snowflake)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)

PHPackages © 2026

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