PHPackages                             bgaze/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. [CLI &amp; Console](/categories/cli)
4. /
5. bgaze/laravel-php-cs-fixer

ActiveLibrary[CLI &amp; Console](/categories/cli)

bgaze/laravel-php-cs-fixer
==========================

A PHP-CS-Fixer bridge for use via Artisan CLI on Laravel 5.5+

2.1.0(6y ago)124.2k31MITPHPPHP &gt;=5.6.4

Since May 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bgaze/laravel-php-cs-fixer)[ Packagist](https://packagist.org/packages/bgaze/laravel-php-cs-fixer)[ RSS](/packages/bgaze-laravel-php-cs-fixer/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (7)Used By (1)

PHP CS Fixer for Laravel 5.5+
=============================

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

[![GitHub license](https://camo.githubusercontent.com/1098dfbc86fffd36dc3e40e794b013e7bfab03a0cfbb099c18055aedbbe6951f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6267617a652f6c61726176656c2d7068702d63732d6669786572)](https://github.com/bgaze/laravel-php-cs-fixer/blob/master/LICENSE)[![Maintenance](https://camo.githubusercontent.com/9c933c1d3366fecc63fee39b9614520e5362c578c4ef166ccbc1691f6a249cda/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f32303230)](https://camo.githubusercontent.com/9c933c1d3366fecc63fee39b9614520e5362c578c4ef166ccbc1691f6a249cda/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f32303230)[![GitHub release (latest by date)](https://camo.githubusercontent.com/1cdb9f4313bd0d91930e5930215de895b0cb336fc32c48961a63fbe615a5a29e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6267617a652f6c61726176656c2d7068702d63732d6669786572)](https://github.com/bgaze/laravel-php-cs-fixer/releases)[![GitHub stars](https://camo.githubusercontent.com/f4b6ac13a3bf1f402a740545a4159e668314581a981c55ebecf37efadac5ced9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6267617a652f6c61726176656c2d7068702d63732d6669786572)](https://github.com/bgaze/laravel-php-cs-fixer/stargazers)[![Packagist](https://camo.githubusercontent.com/0db66ad5e7d9f96b2d1d2357815bbde9041c349b3bbeccf29b901c4ef357c9f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6267617a652f6c61726176656c2d7068702d63732d6669786572)](https://packagist.org/packages/bgaze/laravel-php-cs-fixer)

This package allows to use [PHP-CS-Fixer](https://cs.sensiolabs.org/) right into Laravel 5.5+ applications to format PHP code.

Documentation
=============

[](#documentation)

Full documentation is available at

Quick start
===========

[](#quick-start)

Install this package using [Composer](https://getcomposer.org).

```
$ composer require bgaze/laravel-php-cs-fixer

```

To customize the configuration, publish it:

```
$ php artisan vendor:publish --tag=bgaze-php-cs-fixer-config

```

> **Notes :** Configuration returns an instance of `\PhpCsFixer\Config` and will be published into a `.php_cs.dist` file at the Laravel installation root.

Use `php-cs-fixer:fix` artisan command to fix files in your application:

```
$ php-cs-fixer:fix [options] path1 [path2 path3 ...]

```

Use `php_cs_fixer()` helper to fix files from the code:

```
// Quick.
php_cs_fixer('path/to/a/file/or/dir');

// Advanced.
php_cs_fixer(['path/to/file/or/dir/1', 'path/to/file/or/dir/2'], [
    '--allow-risky' => true,
    '--dry-run' => true,
    '--config' => 'path/to/a/config/file'
]);
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% 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 ~133 days

Recently: every ~162 days

Total

6

Last Release

2253d ago

Major Versions

1.0.2 → 2.0.02020-02-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f4a5f965ee3485d7f2c78450a371d363027a7f10935d6559869874a584d5402?d=identicon)[bgaze](/maintainers/bgaze)

---

Top Contributors

[![bgaze](https://avatars.githubusercontent.com/u/985214?v=4)](https://github.com/bgaze "bgaze (43 commits)")[![fridzema](https://avatars.githubusercontent.com/u/8180660?v=4)](https://github.com/fridzema "fridzema (3 commits)")

---

Tags

beautify-phpfix-phplaravelphp-cs-fixer

### Embed Badge

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

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

###  Alternatives

[acdphp/laravel-schedule-police

Stop, start or execute scheduled commands from a simple dashboard without redeploying, while maintaining the visibility, control, and reviewability of the configurations in your codebase.

5116.9k](/packages/acdphp-laravel-schedule-police)[jakyeru/laravel-shell

Laravel-Shell adds a terminal interface to your web application, allowing you to run shell commands directly from your browser.

166.1k](/packages/jakyeru-laravel-shell)

PHPackages © 2026

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