johninamillion/php-code-styles
最新稳定版本:0.2.0
Composer 安装命令:
composer require johninamillion/php-code-styles
包简介
PHP-CS-Fixer configuration and PHPStan setup for PHP projects.
关键字:
README 文档
README
PHP Code-Styles for PHP-CS-Fixer.
Table of Contents
Installation
You can install the package via Composer:
composer require --dev johninamillion/php-code-styles
Add the following scripts to your composer.json file:
{
"scripts": {
"post-install-cmd": [
"johninamillion\\CodeStyles\\Composer::install"
],
"post-update-cmd": [
"johninamillion\\CodeStyles\\Composer::update"
],
"code:analyse": "./vendor/bin/phpstan analyse",
"code:format": "./vendor/bin/php-cs-fixer fix"
}
}
Usage
Fix code styles with PHP-CS-Fixer:
composer code:format
Analyse your code with PHPStan:
composer code:analyse
License
This package is licensed under the MIT License. See the LICENSE file for more details.
All Glory To God - The Father, The Son, and The Holy Spirit.统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-12