lts / php-qa-ci
Simple PHP QA pipeline and scripts. Largely just a collection of dependencies with configuration and scripts to run them together
Installs: 2 421
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Type:project
Requires
- php: ^8.0
- ext-json: *
- ext-tokenizer: *
- ergebnis/composer-normalize: ^2.15
- friendsofphp/php-cs-fixer: @stable
- funkyproject/reflection-file: @stable
- infection/infection: @stable
- maglnet/composer-require-checker: @stable
- php-parallel-lint/php-console-color: @stable
- php-parallel-lint/php-parallel-lint: @stable
- phpstan/extension-installer: @stable
- phpstan/phpstan: @stable
- phpstan/phpstan-strict-rules: @stable
- phpunit/phpunit: @stable
- rector/rector: ^0.17.7
- squizlabs/php_codesniffer: @stable
- thecodingmachine/safe: ^2.5
Requires (Dev)
- phpstan/phpstan-phpunit: @stable
- roave/security-advisories: dev-master
Suggests
- nunomaduro/larastan: Laravel specific checks (PHPStan Wrapper)
- phploc/phploc: get some stats, not currently compatible with latest symfony
- phpstan/phpstan-deprecation-rules: Checks for deprecated functions and methods
- phpstan/phpstan-doctrine: Adds checks for Doctrine
- phpstan/phpstan-mockery: Prevents Mockery from failing on Stan
- phpstan/phpstan-phpunit: Adds checks for PHPUnit tests
- phpstan/phpstan-symfony: Symfony specific checks
- sllh/composer-versions-check: To be brought back in when there is a PHP8 version...
This package is auto-updated.
Last update: 2025-03-12 14:30:50 UTC
README
Install
First, ensure your bin dir config is set in your composer.json like this
"config": {
"bin-dir": "bin",
Then install the current bleeding edge, run
composer require --dev lts/php-qa-ci:dev-master@dev
For Symfony - you can accept the prompts to run recipes, but you will then need to decide to either stick with Symfony defaults or the php-qa-ci default which are more extensive
If you decide to stick with the lts defaults, then you should remove the config files that the symfony recipe created. If you want to keep config files in your root directory, you can choose to symlink them to the php-qa-ci files, eg
Note that you should properly compare the files before doing this.
# revert to php-qa-ci PHPUnit configs
rm phpunit.xml.dist
ln -s vendor/lts/php-qa-ci/configDefaults/generic/phpunit.xml
Introduction
PHP-QA-CI is a quality assurance and continuous integration 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.
This package is written for and has only been tested on Linux.
Docs
Documentation is something of a work in progress, however you can find various docs in the ./docs folder
Other notes
Specify PHP Binary Path
if you are running multiple PHP versions, you can specify which one to use like so:
export PHP_QA_CI_PHP_EXECUTABLE=/bin/php81
./bin/qa
or
PHP_QA_CI_PHP_EXECUTABLE=/bin/php81 ./bin/qa
Long Term Support
This package was brought to you by Long Term Support LTD, a company run and founded by Joseph Edmonds
You can get in touch with Joseph at https://joseph.edmonds.contact/
Check out Joseph's recent book The Art of Modern PHP 8