Download the PHP package kevyworks/laravel-php-cs-fixer without Composer
On this page you can find all versions of the php package kevyworks/laravel-php-cs-fixer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kevyworks/laravel-php-cs-fixer
More information about kevyworks/laravel-php-cs-fixer
Files in kevyworks/laravel-php-cs-fixer
Package laravel-php-cs-fixer
Short Description A PHP-CS-Fixer bridge for use via Artisan CLI on Laravel 5.5+
License MIT
Informations about the package laravel-php-cs-fixer
PHP CS Fixer for Laravel 5.5+
This package allows to use PHP-CS-Fixer right into Laravel 5.5+ applications to format PHP code following PSR-1 and PSR-2 coding standards.
Important:
Default PHP-CS-Fixer config was updated in v2 to remove dependency to@Symfony
ruleset and be more compliant with Laravel coding style.
If needed, you'll find v1 config here.
Credits
Forked from bgaze/laravel-php-cs-fixer
This package is an adapted copy of https://github.com/JackieDo/Artisan-PHP-CS-Fixer.
Credits and many thanks to JackieDo :-)
Provided features
- A PHP-CS-Fixer installation right into Laravel 5.5+ projects.
- Commands to execute PHP-CS-Fixer via Laravel Artisan CLI :
- php-cs-fixer:fix : Fix php coding standards for directories or files.
- php-cs-fixer:describe : Describe rule / ruleset of fixer.
- php-cs-fixer:version : Display PHP-CS-Fixer version.
- An helper to fix files from the code : php_cs_fixer.
Installation
Install this package using Composer.
To customize the configuration, publish it :
Note :
Configuration isn't a standard Laravel config files as it returns an instance of\PhpCsFixer\Config
.
It will be published into a.php-cs
file at the Laravel installation root.
Usage
Please see PHP-CS-Fixer documentation for more details.
Fix
Fix your code with PHP Coding Standards.
From Artisan CLI
Usage:
Syntax:
Usage:
Arguments:
Options:
Default config files .php_cs.dist
and .php_cs
Examples:
From PHP code
The php_cs_fixer() helper wraps php-cs-fixer:fix command and allows to fix files right from the code.
It returns the exit code of the command.
Usage :
Examples :
Describe rule or set
Usage:
Arguments:
Options:
Version
Displays PHP-CS-Fixer version installed.
Usage: