k10r / codestyle
Kellerkinder codestyle definitions for different PHP versions.
Installs: 50 229
Dependents: 10
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
This package is auto-updated.
Last update: 2022-07-28 10:36:19 UTC
README
Installation
First require the package via composer:
composer require --dev k10r/codestyle
Choose a version
After that, decide which configuration you want to use, currently the following configurations are supported:
- PHP 7.1
- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0
Implementation
- Create a
.php-cs-fixer.dist.php
or add the one provided by the project to the root folder of your project. - Change the version to one of the listed above
- Finally, add
.php-cs-fixer.cache
to project specific.gitignore
file - If you want to apply the changes simply use:
./vendor/bin/php-cs-fixer fix
- Use the following command to take a look at the changes before applying them:
./vendor/bin/php-cs-fixer fix --dry-run