Download the PHP package realodix/cs-config without Composer
On this page you can find all versions of the php package realodix/cs-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download realodix/cs-config
More information about realodix/cs-config
Files in realodix/cs-config
Package cs-config
Short Description Shared php-cs-fixer rules & finders preset
License MIT
Homepage https://github.com/realodix/cs-config
Informations about the package cs-config
:exclamation: Abandoned!
This package is abandoned, you should avoid using it. Use realodix/relax
instead.
Realodix CS Config
This package is built on top of PHP CS Fixer
and makes it simple to to sharing identical PHP CS Fixer rules across all of your projects without copy-and-pasting configuration files.
Installation
You can install this package by using composer:
PHP | Version |
---|---|
>= 7.1 |
1.0.x |
>= 7.4 |
1.1.x |
Configuration
In your PHP CS Fixer configuration file, use the following contents:
Finder Presets
Finder::base()
- DefaultFinder::laravel()
Rulesets
RealodixPlus
LaravelRisky
Spatie
Blank
- No predefined rules. Use this to completely set your own rules.
:bulb: Namespace Realodix\CsConfig\Rules\
Custom Fixers
Laravel/laravel_phpdoc_alignment
Laravel/laravel_phpdoc_order
Laravel/laravel_phpdoc_separation
- kubawerlos/php-cs-fixer-custom-fixers
:bulb: It's already registered, so you no longer need to register it via registerCustomFixers()
.
Advanced Configuration
In case you only need some tweaks for specific projects, which won't deserve an own preset - you can add additional rules or override them.
Extending
You can easily create your own presets by extending the AbstractRules
class.
And use it!
Troubleshooting
For general help and support join our GitHub Discussions.
Please report bugs to the GitHub Issue Tracker.
License
This package is licensed under the MIT License.
All versions of cs-config with dependencies
kubawerlos/php-cs-fixer-custom-fixers Version ^3.11
friendsofphp/php-cs-fixer Version ^3.9