alquesadilla/php-coding-standards-enforcer
Composer 安装命令:
composer require alquesadilla/php-coding-standards-enforcer
包简介
Enforce coding standards on your PHP & Javascript. Now with SWagger Support. Don't let your team mess up your code base.
README 文档
README
Enforce coding standards on your PHP & JS code base
Install with composer
composer require alquesadilla/php-coding-standards-enforcer --dev
Add the provider to app config
Alquesadilla\Enforcer\EnforcerServiceProvider::class
Use artisan to publish the config
php artisan vendor:publish --provider="Alquesadilla\Enforcer\EnforcerServiceProvider" --tag=config
Run artisan command to copy the pre-commit hook
php artisan enforcer:copy
If you are working with other developers and you prefer each time that someone makes a clone and runs composer install, the hook is automatically copied, just add the copy command to the composer scripts, anyways it runs only on the defined environment, which by default is local.
"post-install-cmd": [ "...laravel commands..." "php artisan enforcer:copy" ],
统计信息
- 总下载量: 10.63k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-04