PHPackages                             labelworx/shift-styles - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. labelworx/shift-styles

ActiveLibrary[Testing &amp; Quality](/categories/testing)

labelworx/shift-styles
======================

PHP code linter using Laravel Shift ruleset and PHP-CS-Fixer

1.0.2(5y ago)12.7kMITPHP

Since Sep 21Pushed 5y agoCompare

[ Source](https://github.com/labelworx/shift-styles)[ Packagist](https://packagist.org/packages/labelworx/shift-styles)[ Docs](https://github.com/labelworx/shift-styles)[ RSS](/packages/labelworx-shift-styles/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Laravel Shift Styles
====================

[](#laravel-shift-styles)

This package allows you to quickly run the [Laravel Shift](https://laravelshift.com/) linter commands locally using `php artisan shift`.

Using [PHP CS Fixer](https://github.com/FriendsOfPhp/PHP-CS-Fixer) and a ruleset created by [Laravel Shift](https://laravelshift.com/), 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](https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200).

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

[](#installation)

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

```
composer require --dev labelworx/shift-styles
```

Setup
-----

[](#setup)

This command will require a `.php_cs.dist` configuration file for [PHP CS Fixer](https://github.com/FriendsOfPhp/PHP-CS-Fixer) to be available in your project root directory.

You can create this file using the command.

```
php artisan shift:setup
```

This file contains the default Laravel folder structure. These are the folders that will be scanned by [PHP CS Fixer](https://github.com/FriendsOfPhp/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:

```
