swisnl/php-cs-fixer-config
最新稳定版本:1.47.0
Composer 安装命令:
composer require swisnl/php-cs-fixer-config
包简介
Default PHP-CS-Fixer config factory used at SWIS
README 文档
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.jsonand commit. - Update the release notes in
CHANGELOG.mdand 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.
统计信息
- 总下载量: 47.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-28