k10r/codestyle
最新稳定版本:v3.1.0
Composer 安装命令:
composer require k10r/codestyle
包简介
Kellerkinder codestyle definitions for different PHP versions.
README 文档
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.4
- PHP 8.0
- PHP 8.1
- PHP 8.2
- PHP 8.3
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
统计信息
- 总下载量: 84.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 16
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-02