Skip to content
Snippets Groups Projects
composer.json 1.85 KiB
Newer Older
Reiter, Christoph's avatar
Reiter, Christoph committed
{
    "name": "dbp/api-starter-bundle",
    "type": "symfony-bundle",
    "license": "AGPL-3.0-or-later",
    "require": {
        "php": "^7.3",
Reiter, Christoph's avatar
Reiter, Christoph committed
    },
    "require-dev": {
Reiter, Christoph's avatar
Reiter, Christoph committed
    },
    "repositories": [
        {
            "type": "vcs",
Reiter, Christoph's avatar
Reiter, Christoph committed
        }
    ],
    "autoload": {
        "psr-4": {
            "DBP\\API\\StarterBundle\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "DBP\\API\\StarterBundle\\Tests\\": "tests/"
        }
    },
    "config": {
        "sort-packages": true,
        "platform": {
            "php": "7.3"
        }
    },
    "scripts": {
        "test": [
            "@php vendor/bin/simple-phpunit"
        ],
        "phpstan": [
            "@php vendor/bin/simple-phpunit --atleast-version 0",
            "@php vendor/bin/phpstan analyze --ansi"
        ],
        "psalm": [
            "@php vendor/bin/simple-phpunit --atleast-version 0",
            "@php vendor/bin/psalm"
        ],
        "lint": [
            "@composer run cs",
            "@composer run phpstan",
            "@composer run psalm"
        ],
        "cs-fix": [
            "@php vendor/bin/php-cs-fixer --ansi fix"
        ],
        "cs": [
Reiter, Christoph's avatar
Reiter, Christoph committed
            "@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff"
        ],
        "coverage": [
            "@php vendor/bin/simple-phpunit --coverage-html _coverage"