Download the PHP package eduarguz/shift-php-cs without Composer
On this page you can find all versions of the php package eduarguz/shift-php-cs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eduarguz/shift-php-cs
More information about eduarguz/shift-php-cs
Files in eduarguz/shift-php-cs
Package shift-php-cs
Short Description PHP CS Fixer - Laravel Coding Style Ruleset
License MIT
Homepage https://github.com/eduarguz/shift-php-cs
Informations about the package shift-php-cs
PHP CS Fixer - Laravel Coding Style Ruleset
This package allows you to use the set of rules for PHP CS Fixer created and recommended by Laravel Shift.
You can find the original and official source of the ruleset in this gist.
Installation
You can install the ruleset via composer using the following command:
This package will also require the ^3.0
version of friendsofphp/php-cs-fixer
package .
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.
Put your Finder
config inside. This will tell PHP-CS-Fixer where to run.
Usually, for a Laravel Project this is the config:
Run your fixer.
Run on CI
Upgrade from 1.x to 3.x version of this package (to PHP-CS-Fixer 3.x)
Rename any of your existing files:
.php_cs
-> .php-cs-fixer.php
.php_cs.dist
-> .php-cs-fixer.dist.php
.php_cs.cache
-> .php-cs-fixer.cache
Resources
- Sharing PHP-CS-Fixer rules across projects and teams. Laravel News Article
- Laravel Shift Recommended Coding Ruleset. Gist - Shift