{
    "name": "nunomaduro/phpinsights",
    "description": "Instant PHP quality checks from your console.",
    "keywords": [
        "php",
        "insights",
        "console",
        "quality",
        "source",
        "code"
    ],
    "license": "MIT",
    "authors": [
        {
            "name": "Nuno Maduro",
            "email": "enunomaduro@gmail.com"
        }
    ],
    "require": {
        "php": "^7.4|^8.0",
        "ext-iconv": "*",
        "ext-json": "*",
        "ext-mbstring": "*",
        "ext-tokenizer": "*",
        "cmgmyr/phploc": "^8.0.3",
        "composer/semver": "^3.4",
        "friendsofphp/php-cs-fixer": "^3.40.0",
        "justinrainbow/json-schema": "^5.2.13",
        "league/container": "^3.2|^4.2",
        "php-parallel-lint/php-parallel-lint": "^1.3.2",
        "psr/container": "^1.0|^2.0.2",
        "psr/simple-cache": "^1.0|^2.0|^3.0",
        "sebastian/diff": "^4.0|^5.0.3|^6.0",
        "slevomat/coding-standard": "^8.14.1",
        "squizlabs/php_codesniffer": "^3.7.2",
        "symfony/cache": "^5.4|^6.0|^7.0",
        "symfony/console": "^5.4|^6.4|^7.0",
        "symfony/finder": "^5.4|^6.0|^7.0",
        "symfony/http-client": "^5.4|^6.0|^7.0",
        "symfony/process": "^5.4|^6.4|^7.0"
    },
    "require-dev": {
        "ergebnis/phpstan-rules": "^0.15.3",
        "illuminate/console": "^5.8|^6.0|^7.0|^8.0|^9.20|^10.0",
        "illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.52.16|^10.0",
        "mockery/mockery": "^1.6.6",
        "phpstan/phpstan-strict-rules": "^0.12.11",
        "phpunit/phpunit": "^8.0|^9.0|^10.4.2",
        "rector/rector": "0.11.56",
        "symfony/var-dumper": "^5.4|^6.0|^7.0",
        "thecodingmachine/phpstan-strict-rules": "^0.12.2"
    },
    "suggest": {
        "ext-simplexml": "It is needed for the checkstyle formatter"
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "autoload": {
        "psr-4": {
            "NunoMaduro\\PhpInsights\\": "src"
        }
    },
    "config": {
        "sort-packages": true,
        "preferred-install": "dist",
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    },
    "extra": {
        "laravel": {
            "providers": [
                "NunoMaduro\\PhpInsights\\Application\\Adapters\\Laravel\\InsightsServiceProvider"
            ]
        }
    },
    "bin": [
        "bin/phpinsights"
    ],
    "scripts": {
        "website:copy-changelog": "@php -r \"copy('CHANGELOG.md', 'docs/changelog.md');\"",
        "website:copy-logo": "@php -r \"(is_dir('docs/.vuepress/public') || mkdir('docs/.vuepress/public')) && copy('art/logo_mixed.gif', 'docs/.vuepress/public/logo.gif') && copy('art/heart.svg', 'docs/.vuepress/public/heart.svg') && copy('art/heart.png', 'docs/.vuepress/public/heart.png');\"",
        "csfixer:test": "php-cs-fixer fix -v",
        "phpstan:test": "phpstan analyse --ansi",
        "phpunit:test": "phpunit --colors=always",
        "rector:test": "rector process --ansi",
        "insights": "bin/phpinsights analyse --ansi -v --no-interaction",
        "test": [
            "@phpstan:test",
            "@csfixer:test --dry-run",
            "@rector:test --dry-run",
            "@phpunit:test",
            "@insights"
        ],
        "fix": [
            "@csfixer:test",
            "@insights --fix --quiet",
            "@rector:test"
        ],
        "post-install-cmd": [
            "@website:copy-changelog",
            "@website:copy-logo"
        ],
        "post-update-cmd": [
            "@website:copy-changelog",
            "@website:copy-logo"
        ]
    },
    "scripts-descriptions": {
        "website:copy-changelog": "Copy package changelog to the website",
        "website:copy-logo": "Copy logo from art directory to the website",
        "rector:test": "Run the rector tests.",
        "csfixer:test": "Run the PhpCsFixer tests.",
        "phpstan:test": "Run the phpstan tests.",
        "phpunit:test": "Run the phpunit tests.",
        "insights": "Run the phpinsights tests",
        "test": "Run all tests including phpstan, phpunit and phpcs.",
        "fix": "Run ecs, phpinsights and rector fixers."
    }
}
