├── .gitignore ├── .travis.yml ├── README.md └── composer.json /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | /bin/ 3 | composer.lock 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 7.0 5 | - 5.6 6 | - 5.5 7 | - 5.4 8 | - 5.3 9 | - hhvm 10 | 11 | script: 12 | # Update composer to latest version. 13 | - composer self-update || true 14 | # Validate composer.json file. 15 | - composer validate 16 | # Try to install all requirements. 17 | - composer install 18 | # Check if there is a security issue with the required packages. 19 | - bin/security-checker security:check composer.lock 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | h4cc/phpqatools [![Build Status](https://travis-ci.org/h4cc/phpqatools.png?branch=master)](https://travis-ci.org/h4cc/phpqatools) 2 | ========== 3 | 4 | This is a composer meta package for installing PHP Quality Assurance Tools with only one dependency. 5 | Only stable packages are used, to keep the configuration easy and secure. 6 | 7 | Included in this package are: 8 | - PHPUnit 9 | - PHP-Invoker 10 | - DbUnit 11 | - PHPLOC 12 | - PHPCPD 13 | - PHP_Depend 14 | - PHPMD 15 | - PHP_CodeSniffer 16 | - Fabien Potencier/PHP Coding Standards Fixer 17 | - Sensiolabs/Security-Checker 18 | - Behat 19 | 20 | 21 | # Usage 22 | 23 | The installed tools are available in vendor/bin/ and can be started like this: 24 | 25 | ```bash 26 | php vendor/bin/phpmd 27 | ``` 28 | 29 | # Installation 30 | 31 | To use this package, add it as as "dev" dependency with this command: 32 | 33 | ```bash 34 | composer require h4cc/phpqatools --dev 35 | ``` 36 | 37 | Or modify your composer.json as followed: 38 | 39 | ```json 40 | require-dev: { 41 | "h4cc/phpqatools": "*" 42 | } 43 | ``` 44 | 45 | More info about development dependencies: http://getcomposer.org/doc/04-schema.md#require-dev 46 | 47 | 48 | # Versioning 49 | 50 | This package will be updated, when newer or other stable packages become available. Fell free to suggest tools if they are missing. 51 | 52 | To avoid problems you may not use composer version constraints like this "~1.1". Such a constraint will always upgrade to the newest "1.\*" version which might break your toolchain. 53 | In such a case, simply stick to a minor-version like "1.2.\*". 54 | 55 | 56 | # Todo 57 | 58 | A phing or task buildfile may be included someday. 59 | I hope some more tools get available in stable versions, so i can add them here. 60 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "h4cc/phpqatools", 3 | "description": "A meta composer package for PHP QA Tools.", 4 | "keywords": ["php", "qa", "tools", "debug"], 5 | "type": "metapackage", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Julius Beckmann", 10 | "email": "phpqatools@h4cc.de", 11 | "homepage": "http://h4cc.de" 12 | } 13 | ], 14 | "config": { 15 | "bin-dir": "bin", 16 | "vendor-dir": "vendor" 17 | }, 18 | "require": { 19 | "phpunit/phpunit": "~4.0|~5.0", 20 | "phpunit/dbunit": "~1.0|~2.0", 21 | 22 | "phploc/phploc": "~2.0", 23 | "sebastian/phpcpd": "~2.0", 24 | 25 | "pdepend/pdepend": "~2.0", 26 | "phpmd/phpmd": "~2.0", 27 | "squizlabs/php_codesniffer": "~2.0", 28 | 29 | "fabpot/php-cs-fixer": "~1.0", 30 | "sensiolabs/security-checker": "~3.0", 31 | 32 | "behat/behat": "~3.0" 33 | }, 34 | "suggest": { 35 | "sami/sami": "Documentation generator used for Symfony2 docs.", 36 | "apigen/apigen": "Documentation Generator using nette and texy.", 37 | "phpdocumentor/phpdocumentor": "Documentation Generator for PHP.", 38 | "theseer/phpdox": "A fast Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT) with event based processing.", 39 | "mayflower/php-codebrowser": "A code browser that augments the code with information from various QA tools." 40 | }, 41 | "extra": { 42 | "branch-alias": { 43 | "dev-master": "2.0-dev" 44 | } 45 | } 46 | } 47 | --------------------------------------------------------------------------------