flexis / php-cs-fixer-config
Provides common configurations for friendsofphp/php-cs-fixer, used within FLEX-IS
Installs: 16
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/flexis/php-cs-fixer-config
Requires
- php: ^8.1
- friendsofphp/php-cs-fixer: ^3.14
Requires (Dev)
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/php-code-coverage: ^10.0
- phpunit/phpunit: ^10.0
README
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.
Installation
Install this package via composer:
$ composer require --dev flexis/php-cs-fixer-config
Create a configuration file .php-cs-fixer.dist.php:
- Create
Finderwith 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
Usage
To fix coding standards manually, run:
$ php vendor/bin/php-cs-fixer fix
💡 See the official documentation for more examples.
License
This package is licensed using the MIT License.