Download the PHP package labelworx/shift-styles without Composer
On this page you can find all versions of the php package labelworx/shift-styles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download labelworx/shift-styles
More information about labelworx/shift-styles
Files in labelworx/shift-styles
Package shift-styles
Short Description PHP code linter using Laravel Shift ruleset and PHP-CS-Fixer
License MIT
Homepage https://github.com/labelworx/shift-styles
Informations about the package shift-styles
Laravel Shift Styles
This package allows you to quickly run the Laravel Shift linter commands locally using php artisan shift
.
Using PHP CS Fixer and a ruleset created by Laravel Shift, this makes linting your Laravel project simple and adhere to "The Laravel Way".
Your can find the official ruleset used in this package in this gist.
Installation
You can install the ruleset via composer using the following command:
Setup
This command will require a .php_cs.dist
configuration file for PHP CS Fixer to be available in your project root directory.
You can create this file using the command.
This file contains the default Laravel folder structure. These are the folders that will be scanned by PHP CS Fixer. You will need to add additional paths to this file if your project structure is different from that listed below.
A typical Laravel Project includes these directories:
PHP CS Fixer uses a cache file to speed up usage. You are recommended that to add the .php_cs.cache
to you .gitignore
file.
Usage
To run and fix files -
Resources
- Sharing PHP-CS-Fixer rules across projects and teams. Laravel News Article
- Laravel Shift Recommended Coding Ruleset. Gist - Shift