{
    "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 || ^8.1",
        "ext-iconv": "*",
        "ext-json": "*",
        "ext-mbstring": "*",
        "ext-tokenizer": "*",
        "cmgmyr/phploc": "^8.0",
        "composer/semver": "^3.3",
        "friendsofphp/php-cs-fixer": "^3.0.0",
        "justinrainbow/json-schema": "^5.1",
        "league/container": "^3.2|^4.2",
        "php-parallel-lint/php-parallel-lint": "^1.3",
        "psr/container": "^1.0|^2.0",
        "psr/simple-cache": "^1.0|^2.0|^3.0",
        "sebastian/diff": "^4.0|^5.0",
        "slevomat/coding-standard": "^7.0.8|^8.0",
        "squizlabs/php_codesniffer": "^3.5",
        "symfony/cache": "^4.4|^5.0|^6.0",
        "symfony/console": "^4.2.12|^5.0|^6.0",
        "symfony/finder": "^4.2.12|^5.0|^6.0",
        "symfony/http-client": "^4.3.8|^5.0|^6.0",
        "symfony/process": "^5.4|^6.0"
    },
    "require-dev": {
        "ergebnis/phpstan-rules": "^0.15.0",
        "illuminate/console": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
        "illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
        "mockery/mockery": "^1.0",
        "phpstan/phpstan-strict-rules": "^0.12",
        "phpunit/phpunit": "^8.0|^9.0|^10.0",
        "rector/rector": "0.11.56",
        "symfony/var-dumper": "^4.2.12|^5.0|^6.0",
        "thecodingmachine/phpstan-strict-rules": "^0.12.0"
    },
    "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."
    }
}
