tmloberon / codestyle
Kellerkinder codestyle definitions for different PHP versions. (Continued)
4.0.1
2026-01-12 14:35 UTC
Requires
- friendsofphp/php-cs-fixer: ^3.92.5
This package is auto-updated.
Last update: 2026-03-12 15:03:16 UTC
README
Installation
First require the package via composer:
composer require --dev tm/codestyle
Choose a version
After that, decide which configuration you want to use, currently the following configurations are supported:
- PHP 7.4
- PHP 8.0
- PHP 8.1
- PHP 8.2
- PHP 8.3
- PHP 8.4
- PHP 8.5
Implementation
- Create a
.php-cs-fixer.dist.phpor 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.cacheto project specific.gitignorefile - 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