Download the PHP package realodix/relax without Composer
On this page you can find all versions of the php package realodix/relax. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download realodix/relax
More information about realodix/relax
Files in realodix/relax
Package relax
Short Description Shared php-cs-fixer rules & finders preset
License MIT
Homepage https://github.com/realodix/relax
Informations about the package relax
Relax - Centralized PHP-CS-Fixer Rule Config
Relax is built on top of PHP-CS-Fixer
and makes it easy to provide a standardized way to apply coding standards across multiple projects, ensuring consistency and adherence to best practices.
By using predefined rulesets, it simplifies the setup process and allows teams to quickly integrate PHP-CS-Fixer into their development workflow.
Installation
You can install this package by using composer:
Running Relax
For more details, see PHP-CS-Fixer documentation.
Configuring Relax
You can easily create your own rule set by extending the docs/example_ruleset.md for an example of how to create your own rule set.
Sometimes for big dirty projects, you want to implement some local rules without implementing a ruleset, why not.
For advanced configuration, see the docs/advanced_configuration.md
Presets
Preset defines a built-in set of rules that are ready to be used to fix code style issues in your code.
Preset | Description |
---|---|
laravel |
Rules that follow the official Laravel coding standards |
relax |
Laravel based with a few tweaks |
spatie |
The rule set used by Spatie |
Finder Sets
By default, Relax will inspect all .php
files in your project except those in the vendor
directory.
Method | Description |
---|---|
Finder::base() |
The basic finder setup should be perfect for most PHP projects |
Finder::laravel() |
Inherits Finder::base() with some specific tweaks to Laravel |
:bulb: By default, if finder is not set Relax will use Finder::base()
.
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 relax with dependencies
friendsofphp/php-cs-fixer Version ^3.63
kubawerlos/php-cs-fixer-custom-fixers Version ^3.21
symfony/console Version ^5.4.41 || ^6.0 || ^7.0