classy-org/php-classy-standards
Composer 安装命令:
composer require classy-org/php-classy-standards
包简介
A tool to automatically check and fix PHP files according to Classy coding standards
README 文档
README
composer require --dev classy-org/php-classy-standards
Use
# Testing php files comply with Classy coding standards
vendor/bin/php-classy-fixer fix --dry-run
# Fixing files
vendor/bin/php-classy-fixer fix
# Configure git to automatically fix php files on commit
ln -s ../../vendor/bin/php-classy-precommit-hook .git/hooks/pre-commit
Since php-classy-standards is a simple wrapper around php-cs-fixer with pre-configured rules we use at Classy, you can pass to it any argument php-cs-fixer is accepting. Example:
vendor/bin/php-classy-fixer fix --dry-run ./folder/with/files/to/check
统计信息
- 总下载量: 54.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-03