jules-bertrand-external/php-quality-tools
最新稳定版本:1.0.3
Composer 安装命令:
composer require jules-bertrand-external/php-quality-tools
包简介
A set of tools used to improve your PHP code quality.
README 文档
README
A set of tools used to improve your PHP code quality.
🛠️ Tools
🛠️ Installation
composer require jules-bertrand-external/php-quality-tools --dev
🧑🏻💻 Usage
php vendor/bin/php-quality-tools run <paths> <-c> <t tool> <-r report path>
Options :
paths : Define a list of paths (directories or files) to scan (use a comma separated list to list multiple paths). By default, will use current working directory.
-c : Will treat only changed files in the defined paths.
-t <tool> : Tool to execute, one of "phpcs", "php-cs-fixer", "phpmd", "phpstan". If you want to execute only a specific tool.
-r <report path> : Will generate reports in checkstyle format in the specified path.
🧐 Notes
If you want to speedup the PHPMD tool, you can create the file pdepend.xml at the root of your project directory with the following content :
<?xml version="1.0"?>
<symfony:container xmlns:symfony="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://pdepend.org/schema/dic/pdepend"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<config>
<cache>
<driver>memory</driver>
</cache>
</config>
</symfony:container>
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-01-27