Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
/ ci-test-tools Public archive

Our used CI test tools with default configuration.

License

Notifications You must be signed in to change notification settings

elbgoods/ci-test-tools

Repository files navigation

CI Test Tools

Packagist PHP from Packagist Packagist Version GitHub Workflow Status

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

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