swisnl / php-cs-fixer-config
Default PHP-CS-Fixer config factory used at SWIS
1.42.0
2025-07-18 14:48 UTC
Requires
- php: >=7.4
- adamwojs/php-cs-fixer-phpdoc-force-fqcn: ^2.0
- friendsofphp/php-cs-fixer: 3.84.*
- dev-master
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
This package is auto-updated.
Last update: 2025-07-18 14:49:14 UTC
README
Default PHP-CS-Fixer config factory used at SWIS
Install
Via Composer
composer require --dev swisnl/php-cs-fixer-config
Usage
Just use the config factory in your PHP-CS-Fixer config, and you're good to go!
<?php
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__.'/app',
__DIR__.'/config',
__DIR__.'/database',
__DIR__.'/lang',
__DIR__.'/routes',
__DIR__.'/tests',
])
;
return Swis\PhpCsFixer\Config\Factory::create()
->setFinder($finder);
Change log
Please see CHANGELOG for more information on what has changed recently.
How to release a new version
- Read through the release notes of PHP-CS-Fixer for all versions between the current version and the latest version to see if something noticeable has changed.
- Install the latest version of PHP-CS-Fixer in an existing (big) project by using an alias. The first version is the one you want to test and the second version is the currently installed one.
"require-dev": { "friendsofphp/php-cs-fixer": "3.34.1 as 3.27.0" }
- Run
composer update friendsofphp/php-cs-fixer
. - Run PHP-CS-Fixer.
- Check to see if no unexpected or undesired changes have been made. If so, they can be either caused by a new feature we don't like or a bug in PHP-CS-Fixer. If it's a new feature we want to disable, update the config in
src/Factory.php
. If it's a bug, please report it to the PHP-CS-Fixer repository and wait for it to be fixed. - Revert the changes made to the project and close it.
- Bump the PHP-CS-Fixer version in
composer.json
and commit. - Update the release notes in
CHANGELOG.md
and commit. - Tag the latest commit and push the changes. Don't forget to push the tags!
Security
If you discover any security related issues, please email security@swis.nl instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.