This repository was created for the purpose of introducing uniform coding standards for PHP code within FLEX-IS.
It is based on the ideas of refinery29/php-cs-fixer-config
.
Install this package via composer:
$ composer require --dev flexis/php-cs-fixer-config
Create a configuration file .php-cs-fixer.dist.php
:
- Create
Finder
with paths to the source code. - Choose a set of rules according to the target PHP version.
- (optional) Set header comment.
- Set cache filename and add it to the
.gitignore
..php-cs-fixer.cache
To fix coding standards manually, run:
$ php vendor/bin/php-cs-fixer fix
💡 See the official documentation for more examples.
This package is licensed using the MIT License.