jules-bertrand-external / php-quality-tools
A set of tools used to improve your PHP code quality.
Installs: 54
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/jules-bertrand-external/php-quality-tools
Requires
- php: ^8.1
- friendsofphp/php-cs-fixer: ^3.13
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.9
- squizlabs/php_codesniffer: ^3.7
- symfony/console: ^6.0
- symfony/process: ^6.0
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>