bytic / phpqatools
Composer plugin providing PHP quality assurance tools and commands
Requires
- php: ^8
- composer-plugin-api: ^2
- bytic/phpqaconfig: ^1.0
- ergebnis/composer-normalize: ^2.7||^3.0
- friendsofphp/php-cs-fixer: ^2.8 || ^3.0
- madewithlove/license-checker: ^1.0||^2.0
- mockery/mockery: ^1.4
- pdepend/pdepend: ^2.5
- phpmd/phpmd: ^2.6
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^1.0||^2.1
- phpstan/phpstan-mockery: ^1.0||^2.0
- phpstan/phpstan-phpunit: ^1.2||^2.0
- phpunit/phpunit: ^10.0|^11.0|^12.0
- psalm/plugin-mockery: ^0.9||^1.0
- psalm/plugin-phpunit: ^0.17||^0.18||^0.19
- roave/security-advisories: dev-latest
Requires (Dev)
- bytic/codeception: ^5.0
Suggests
- phploc/phploc: ^7.0
- phpmetrics/phpmetrics: ^2.3
- seld/jsonlint: ^1.6
- sensiolabs/security-checker: ^4.1
- sllh/composer-versions-check: ^2.0
- wimg/php-compatibility: ^8.0
Provides
None
Conflicts
None
Replaces
None
README
A Composer plugin that installs PHP quality-assurance tools and provides Composer commands for running them.
Included tools
- PHPUnit and Mockery
- PHP Depend and PHP Mess Detector
- PHP-CS-Fixer
- Composer Normalize and License Checker
- PHPStan with PHPUnit and Mockery extensions
- Psalm with PHPUnit and Mockery plugins
- Roave Security Advisories
The package requires PHP 8.3 or later. Composer selects the newest compatible tool versions for the PHP version used by your project.
Installation
composer require --dev bytic/phpqatools
Composer 2.2 and later requires explicit approval before loading plugins. If
Composer does not prompt during installation, allow this plugin in your
project's composer.json:
{
"config": {
"allow-plugins": {
"bytic/phpqatools": true
}
}
}
The plugin provides grouped commands such as composer bytic:analyze,
composer bytic:ci, composer bytic:fix, and composer bytic:test.
Individual tools can also be run through their provided Composer commands.
Development
Run the package checks with:
composer test
composer analyse
Continuous integration runs these checks on PHP 8.3, 8.4, and 8.5.