elbgoods / ci-test-tools
This package is abandoned and no longer maintained.
No replacement package was suggested.
CI Test Tools used by Elbgoods GmbH
2.0.0
2020-11-05 11:25 UTC
Requires
- php: ^7.3 || ^8.0
- illuminate/database: ^7.0 || ^8.0
- illuminate/support: ^7.0 || ^8.0
- illuminate/testing: ^7.0 || ^8.0
- phpunit/phpunit: ^9.3
Requires (Dev)
Suggests
- friendsofphp/php-cs-fixer: vendor/bin/php-cs-test
- nunomaduro/larastan: vendor/bin/php-stan-test
- nunomaduro/phpinsights: vendor/bin/php-insights-test
- phpmd/phpmd: vendor/bin/php-md-test
- povils/phpmnd: vendor/bin/php-mn-test
- tightenco/tlint: vendor/bin/php-tlint-test
README
Installation
composer require --dev bamarni/composer-bin-plugin elbgoods/ci-test-tools
PHP
PHP-CS-FIXER
Installation
composer bin php-cs require --dev friendsofphp/php-cs-fixer
Usage
vendor/bin/php-cs-test vendor/bin/php-cs-fix
Configuration
If you want to adjust the default configuration you can use your composer.json[extra]
section.
{ "extra": { "php-cs-fixer": { "finder": { "include": [], "exclude": [] } } } }
TLint
Installation
composer bin php-tlint require --dev tightenco/tlint
Usage
vendor/bin/php-tlint-test
Configuration
You have to create a tlint.json
file on your project root level with the following, and only, content.
{ "preset": "laravel", "disabled": [ "NoInlineVarDocs", "NoParensEmptyInstantiations" ] }
PHPMD
- tool: https://github.com/phpmd/phpmd
- config: configs/phpmd.xml
Installation
composer bin php-md require --dev phpmd/phpmd
Usage
vendor/bin/php-md-test
PHP Insights
Installation
composer bin php-insights require --dev nunomaduro/phpinsights
Usage
vendor/bin/php-insights-test
PHPMND
Installation
composer bin php-mn require --dev povils/phpmnd
Usage
vendor/bin/php-mn-test
Larastan
Installation
composer bin php-stan require --dev nunomaduro/larastan
Usage
vendor/bin/php-stan-test
Configuration
You have to create a phpstan.neon.dist
file on your project root level with the following content.
includes: - ./vendor-bin/php-stan/vendor/nunomaduro/larastan/extension.neon - ./vendor/elbgoods/ci-test-tools/configs/phpstan.neon.dist parameters: paths: - ./app - ./config - ./routes