https://github.com/Webysther/composer-plugin-qa
Comprehensive Plugin for composer to execute PHP Quality assurance Tools
https://github.com/Webysther/composer-plugin-qa
composer-plugin metrics php php-qa phpunit quality quality-assurance
Last synced: 6 months ago
JSON representation
Comprehensive Plugin for composer to execute PHP Quality assurance Tools
- Host: GitHub
- URL: https://github.com/Webysther/composer-plugin-qa
- Owner: webysther
- License: mit
- Archived: true
- Created: 2016-06-23T22:36:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-19T00:44:25.000Z (over 4 years ago)
- Last Synced: 2024-11-16T17:45:12.897Z (6 months ago)
- Topics: composer-plugin, metrics, php, php-qa, phpunit, quality, quality-assurance
- Language: PHP
- Homepage:
- Size: 186 KB
- Stars: 25
- Watchers: 4
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-composer - Composer-Plugin-QA - Comprehensive Plugin for composer to execute PHP Quality assurance Tools. (Plugins / Support)
README
# NOT MAINTANED ANYMORE
The development of `composer-plugin-qa` was dropped in favor of [phpqa](https://github.com/jakzal/phpqa) which is actively maintained. The project use docker and can less tightly coupled solution. :)
# Composer Plugin for QA
[](https://travis-ci.org/Webysther/composer-plugin-qa)
[](https://travis-ci.org/Webysther/composer-plugin-qa)
[](https://php.net/)
[](https://packagist.org/packages/webysther/composer-plugin-qa)
[](https://raw.githubusercontent.com/Webysther/composer-plugin-qa/master/LICENSE)Comprehensive [plugin for composer](https://getcomposer.org/doc/articles/plugins.md#creating-a-plugin)
to execute [PHP QA Tools](http://phpqatools.org) in a uniform and simple way.
## Features- Automatic check if exists src,app,test and use by default
- Check if binary is in ```vendor/bin``` or globally installed
- Show ```--version``` for all started commands, only few tools show this information
- Total Execution time
- Command executed by the wrapper## Install
Add to composer.json:
```json
"require-dev": {
"webysther/composer-plugin-qa": "~1.0",
"webysther/composer-meta-qa": "~1.0"
}
```Or install globally:
```bash
composer global require webysther/composer-plugin-qa
```List the options
```bash
$ composer list
```
Almost commands have the short version, example,```qa:sec``` is short version for ```qa:security-checker```.
## Sample
Run Code Sniffer to all source code (```composer qa:cs``` is a short version):

If you change some peace of code e need run for this change:

Is possibile to point for diretory or file:
```bash
$ composer qa:cs app/ACME
$ composer qa:cs app/ACME/Bomb.php
```To see options for any QA command:
```bash
$ composer qa:cpd --help
```## List of PHP Quality Assurance Tools
- [PHPUnit](https://github.com/sebastianbergmann/phpunit): Testing Framework
- [PHPCOV](https://github.com/sebastianbergmann/phpcov): CLI frontend for the [PHP_CodeCoverage](https://github.com/sebastianbergmann/php-code-coverage)
- [Paratest](https://github.com/brianium/paratest): Parallel testing for PHPUnit
- [DbUnit](https://github.com/sebastianbergmann/dbunit): Puts your database into a known state between test runs
- [PHPLOC](https://github.com/sebastianbergmann/phploc): A tool for quickly measuring the size of a PHP project
- [PHPCPD](https://github.com/sebastianbergmann/phpcpd): Copy/Paste Detector
- [PHP_Depend](https://github.com/pdepend/pdepend): Quality of your design in the terms of extensibility, reusability and maintainability
- [PHPMD](https://github.com/phpmd/phpmd): User friendly frontend application for the raw metrics stream measured by PHP Depend
- [PhpMetrics](https://github.com/phpmetrics/PhpMetrics): Static analysis tool, gives metrics about PHP project and classes
- [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer): Detects violations of a defined set of coding standardsPlus:
- [PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer): A tool to automatically fix coding standards issues
- [Security-Checker](https://github.com/sensiolabs/security-checker): Checks if your application uses dependencies with known security vulnerabilitiesSuggest install:
- [Prestissimo](https://github.com/hirak/prestissimo): Composer parallel install plugin