PHPackages                             aloware/shift-php-cs - 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. aloware/shift-php-cs

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

aloware/shift-php-cs
====================

PHP CS Fixer - Laravel Coding Style Ruleset

214.4k↓100%2PHP

Since Mar 25Pushed 2y agoCompare

[ Source](https://github.com/aloware/shift-php-cs)[ Packagist](https://packagist.org/packages/aloware/shift-php-cs)[ RSS](/packages/aloware-shift-php-cs/feed)WikiDiscussions develop Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

PHP CS Fixer - Laravel Coding Style Ruleset
===========================================

[](#php-cs-fixer---laravel-coding-style-ruleset)

This package allows you to use the set of rules for [PHP CS Fixer](https://github.com/FriendsOfPhp/PHP-CS-Fixer) created and recommended by [Laravel Shift](https://laravelshift.com/) with some modification.

You can find the **original and official** source of the ruleset in [this gist](https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200).

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

[](#installation)

You can install the ruleset via composer using the following command:

```
composer require --dev aloware/shift-php-cs:dev-master
```

This package will also require the `^3.0` version of `friendsofphp/php-cs-fixer` package .

Usage
-----

[](#usage)

This package only gives you easy access to the recommended ruleset. The common and usual PHP-CS-Fixer setup is still required:

In case you don't have one, create your `.php-cs-fixer.php` file.

```
touch .php-cs-fixer.php
```

Put your `Finder` config inside. This will tell PHP-CS-Fixer where to run.

Usually, for a Laravel Project this is the config:

```
