Download the PHP package noitran/cs-fixer-command without Composer
On this page you can find all versions of the php package noitran/cs-fixer-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download noitran/cs-fixer-command
More information about noitran/cs-fixer-command
Files in noitran/cs-fixer-command
Download noitran/cs-fixer-command
More information about noitran/cs-fixer-command
Files in noitran/cs-fixer-command
Vendor noitran
Package cs-fixer-command
Short Description Lumen/Laravel wrapper around PHPCS-Fixer package. Used as artisan command.
License MIT
Package cs-fixer-command
Short Description Lumen/Laravel wrapper around PHPCS-Fixer package. Used as artisan command.
License MIT
Please rate this library. Is it a good library?
Informations about the package cs-fixer-command
PhpCsCommand
About
Lumen/Laravel wrapper around PHPCS-Fixer package that allows, using artisan command, easly apply pre-defined coding standards to your laravel or lumen project.
Wrapper uses PHP Coding Standards Fixer package
List of all fixer rules can be found here
Features
- Adds console command
php artisan phpcs:fix
that fixes your project to follow standards defined in yourconfig/phpcs.php
- Adds command to install pre-commit git hook
php artisan phpcs:install-hook
. After install phpcs:fix will be triggered before each commit and will auto fix your code
Install
- Install as composer package
Laravel
- Laravel uses provider auto discovery. Config file can be published using command
Lumen
-
Open your bootstrap/app.php and register as service provider
- Config file should be loaded manually in bootstrap/app.php
Usage
-
Publish
phpcs
and change if necessary, run command for inspectionphp artisan phpcs:fix
-
Hook installation can be done using command
php artisan phpcs:install-hook
- Hook install command can be added into
composer.json
as post-install command, so that, at example, other team members will get pre-commit hook when installing composer dependencies at first time.
Example: Adding as composer post-install command
All versions of cs-fixer-command with dependencies
PHP Build Version
Package Version
The package noitran/cs-fixer-command contains the following files
Loading the files please wait ....