PHPackages                             noitran/cs-fixer-command - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. noitran/cs-fixer-command

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

noitran/cs-fixer-command
========================

Lumen/Laravel wrapper around PHPCS-Fixer package. Used as artisan command.

v0.2.0(6y ago)1101MITPHPPHP &gt;=7.2CI failing

Since Feb 6Pushed 5y agoCompare

[ Source](https://github.com/noitran/cs-fixer-command)[ Packagist](https://packagist.org/packages/noitran/cs-fixer-command)[ RSS](/packages/noitran-cs-fixer-command/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

PhpCsCommand
============

[](#phpcscommand)

[![Coverage Status](https://camo.githubusercontent.com/e306a8fe087598da87b41eff67c6fbf3ac7831a30cf913e125ff8b3e80d3fdcd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e6f697472616e2f63732d66697865722d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/noitran/cs-fixer-command/code-structure)[![Quality Score](https://camo.githubusercontent.com/cbbbf1861ff1ab485648287747eb5273599a3d305f404a0fb6706d4b4287c8c6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6f697472616e2f63732d66697865722d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/noitran/cs-fixer-command)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/51c99edbe424d40b5dd92e743a4b1963629a3726046e8cd8c667dc68576e8bd0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6e6f697472616e2f63732d66697865722d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://github.com/noitran/cs-fixer-command/releases)[![Total Downloads](https://camo.githubusercontent.com/2d2d5862bc0efa861cad434caf9bb4ad0e2730d6c07fa0ecd72a5026588ab3e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696f63617374652f63732d66697865722d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iocaste/cs-fixer-command)

About
-----

[](#about)

Lumen/Laravel wrapper around PHPCS-Fixer package that allows, using artisan command, easly apply pre-defined coding standards to your laravel or lumen project.

Wrapper uses [PHP Coding Standards Fixer package](https://github.com/FriendsOfPHP/PHP-CS-Fixer)

List of all fixer rules can be found [here](https://mlocati.github.io/php-cs-fixer-configurator)

Features
--------

[](#features)

- Adds console command `php artisan phpcs:fix` that fixes your project to follow standards defined in your `config/phpcs.php`
- Adds command to install pre-commit git hook `php artisan phpcs:install-hook`. After install phpcs:fix will be triggered before each commit and will auto fix your code

Install
-------

[](#install)

- Install as composer package

```
$ composer require noitran/cs-fixer-command
```

#### Laravel

[](#laravel)

- Laravel uses provider auto discovery. Config file can be published using command

```
$ artisan vendor:publish --provider="Noitran\CsFixer\CsFixerServiceProvider"

```

#### Lumen

[](#lumen)

- Open your bootstrap/app.php and register as service provider

```
$app->register(Noitran\CsFixer\CsFixerServiceProvider::class);
```

- Config file should be loaded manually in bootstrap/app.php

```
$app->configure('phpcs');
```

Usage
-----

[](#usage)

- Publish `phpcs` and change if necessary, run command for inspection `php artisan phpcs:fix`
- Hook installation can be done using command `php artisan phpcs:install-hook`
- Hook install command can be added into `composer.json` as post-install command, so that, at example, other team members will get pre-commit hook when installing composer dependencies at first time.

#### Example: Adding as composer post-install command

[](#example-adding-as-composer-post-install-command)

```
{
    "name": "laravel/lumen",
    "require": {
        ...
    },
    "autoload": {
        ...
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan phpcs:install-hook"
        ],
        "post-update-cmd": [
            ...
        ]
    }
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~240 days

Total

2

Last Release

2414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7711b3f7e0b0d6bcc742fc8e27e0d286e50f6d921cdbc24e09fb76a2cf0df4d5?d=identicon)[noitran](/maintainers/noitran)

---

Top Contributors

[![noitran](https://avatars.githubusercontent.com/u/46364989?v=4)](https://github.com/noitran "noitran (8 commits)")[![nope7777](https://avatars.githubusercontent.com/u/8977306?v=4)](https://github.com/nope7777 "nope7777 (1 commits)")

---

Tags

psrlaravellumenartisanphp-cs-fixercodequality

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/noitran-cs-fixer-command/health.svg)

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

###  Alternatives

[kitloong/laravel-migrations-generator

Generates Laravel Migrations from an existing database

2.9k7.4M24](/packages/kitloong-laravel-migrations-generator)[stechstudio/laravel-php-cs-fixer

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

146718.6k2](/packages/stechstudio-laravel-php-cs-fixer)[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)[socialengine/sniffer-rules

A Lumen 5 and Laravel 5 SquizLabs Code Sniffer 2.0 artisan command. Detect violations of a defined coding standard. It helps your code remains clean and consistent.

1248.2k1](/packages/socialengine-sniffer-rules)[sunaoka/laravel-facade-generator

Provide command line generation of facade layer files.

171.9k](/packages/sunaoka-laravel-facade-generator)

PHPackages © 2026

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