Download the PHP package edmondscommerce/phpqa without Composer
On this page you can find all versions of the php package edmondscommerce/phpqa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download edmondscommerce/phpqa
More information about edmondscommerce/phpqa
Files in edmondscommerce/phpqa
Package phpqa
Short Description Simple PHP QA pipeline and scripts. Largely just a collection of dependencies with configuration and scripts to run them together
License MIT
Informations about the package phpqa
PHPQA
By Edmonds Commerce
Version 4 Updates
Brings in PHPStan 0.12 which is great
However you will need to do the following:
Remove PHPStan symlinks before upgrading
Ensuring Correct PHPStan Configs
If you are overriding phpstan.neon
in your qaConfig
folder, then you need to make sure you have this in there:
Version 3 Updates
You should update your phpunit.xml file to use printerClass="\PHPUnit\Util\TestDox\CliTestDoxPrinter"
see ./phpunit.xml
Introduction
PHPQA is a quality assurance pipeline written in BASH that can be run both on the desktop as part of your development process and then also as part of a continuous integration (CI) pipeline.
It runs tools in a logical order and will fail as quickly as possible.
PHPQA has only been tested on Linux.
Installing
You can follow dev-master which should generally be pretty stable (all features are developed in feature branches and must pass CI before making it into master. Alternatively if you want real stability, you can track a release version of your choice.
Your project's composer.json
needs to specify a bin folder. If it's not already present, add this:
Running
To run the full pipline, simply execute in your BASH terminal:
Usage:
By default, PHPQA will run against the entire project root.
Single Tool:
If you want to run a single tool, use the -t
option. See the usage above to get the shortcuts for the tools
Specified Path:
Some of the tools allow us to restrict the scan to a specified path. To specify the path, use the -p
option.
Combined
You can combine both options
Configuration
Please see the Configuration docs
The Pipeline
Please see the Pipeline docs
The QA Tools
For full details and configuration instructions for all fo the tools, please see the PHPQA Tools
Platform Detection
PHPQA comes with a set of generic tools and configs, but also has some inbuilt profiles.
Information on how this works can be found on the platform detection page
Specific platforms' docs are at:
- Magento 2
- Laravel and Lumen
Using for Continuous Integration (CI)
Please see the CI docs
Git Hooks
Have a look in gitHooks for git hooks that can be used in your project
The suggested way to use these is to symlink. Note that your actual git hook should not include the .bash
file extension
To use the pre-commit
hook, for example, you would do:
Then ensure the hook is executable by running it:
And you should then see
All versions of phpqa with dependencies
phpunit/phpunit Version ^8.0|^9.0
jakub-onderka/php-console-highlighter Version ^0.3.2
edmondscommerce/php-parallel-lint Version ~1.0.1
phploc/phploc Version ^4.0|^5.0|^6.0|^7.0
phpmd/phpmd Version ^2.8
phpstan/phpstan Version ^0.12
squizlabs/php_codesniffer Version ~3
sllh/composer-versions-check Version ^2.0
phpstan/phpstan-strict-rules Version ^0.12
infection/infection Version ^0.10|^0.20
funkyproject/reflection-file Version ^0.1.0
maglnet/composer-require-checker Version ^2.0
ext-json Version *
phpstan/extension-installer Version ^1.0
friendsofphp/php-cs-fixer Version ^2.16