Download the PHP package romanzipp/php-cs-fixer-config without Composer
On this page you can find all versions of the php package romanzipp/php-cs-fixer-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download romanzipp/php-cs-fixer-config
More information about romanzipp/php-cs-fixer-config
Files in romanzipp/php-cs-fixer-config
Package php-cs-fixer-config
Short Description Personal PHP-CS-Fixer Configuration
License MIT
Informations about the package php-cs-fixer-config
PHP-CS-Fixer Configuration
Personal PHP-CS-Fixer wrapper, preset management and custom rules.
Installation
Notice: You also need to install the PHP-CS-Fixer package itself if you need a local installation with executable in your vendor/bin
folder.
Usage
This package has been created to streamline configuration management for multiple projects and keeping PHP CS Fixer rules up to date.
.php-cs-fixer.dist.php
Available Presets
- PrettyPHP
- PrettyPHP)
You can easily create your own presets by extending the AbstractPreset class.
Overriding presets
In case you only need some tweaks for specific projects - which won't deserve an own preset - there are various methods you can make us of.
Available Rules
Convert PHPDoc Classes to FQCN
Show code sample
#### Bad #### GoodAdvanced Usage
Access the config and finder instances
PHPStorm Configuration
Prequisites
You will need to install PHP CS Fixer globally on your system because PHPStorm does not allow you to set the php-cs-fixer executable on a per-project basis or relative to the project path.
1. Enable Inspection
2. Select ruleset .php-cs-fixer.dist.php file [...]
Unfortunately you have to repeat this process for every project since there is a bug in PHPStorm which prevents users from using relative paths for the .php-cs-fixer.dist.php
configuration or executable file.
Another theoretical approach to this issue is to create a unified ruleset file in your users .composer folder. This has the downside on only having one single ruleset.