fiolasoft / qa
Quality assurance for your PHP projects
Installs: 64
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 4
Open Issues: 0
Language:Shell
Requires
- php: >=7.1
- fiolasoft/coding-standard: ^0.1.0
- jakub-onderka/php-console-highlighter: ^0.3.2
- jakub-onderka/php-parallel-lint: ^1.0.0
README
Quality assurance (binaries
) for your PHP projects
Install
composer require --dev fiolasoft/qa
Manual usage (bin)
CodeSniffer & CodeFixer
Default folders are: src
, app
, tests
Default extensions are: php
, php3
, php4
, php5
, phtml
, phpt
Default excluded folders are: */temp
, */tmp
By default is used ruleset.xml
in library/project root of your project. Otherwise, strict default one is used.
vendor/bin/codesniffer vendor/bin/codesniffer <folder1> <folder2>
vendor/bin/codefixer vendor/bin/codefixer <folder1> <folder2>
Linter (PHP)
Default folders are: src
, app
, tests
vendor/bin/linter vendor/bin/linter <folder1> <folder2>
Executing
composer qa
composer run qa
composer run-script qa
Composer
{ "scripts": { "qa": [ "linter src tests", "codesniffer src tests" ], "tester": [ "tester -s -p php --colors 1 -c tests/php-unix.ini tests/cases" ], "tester-coverage": [ "tester -s -p php --colors 1 -c tests/php-unix.ini -d extension=xdebug.so --coverage ./coverage.xml --coverage-src ./src tests/cases " ] } }
Thanks for testing, reporting and contributing.