{
    "name": "cookiex-io/wp-client",
    "description": "Cookie consent management platform (CMP) designed to simplify compliance with privacy regulations",
    "license": "GPL-3.0-or-later",
    "authors": [
        {
            "name": "Manoj Kumar",
            "email": "wp@cookiex.io",
            "homepage": "https://cookiex.io"
        }
    ],
    "require-dev": {
        "composer/installers": "^v2",
        "phpstan/phpstan": "^1.11.9",
        "php-stubs/acf-pro-stubs": "^6",
        "szepeviktor/phpstan-wordpress": "^1.1",
        "phpstan/extension-installer": "^1.1",
        "yoast/phpunit-polyfills": "^1.0",
        "php-stubs/wp-cli-stubs": "^2",
        "wp-cli/wp-cli": "^2",
        "wp-coding-standards/wpcs": "^3.1"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "autoload": {
        "psr-4": {
            "Cookiex_CMP\\": "src/"
        }
    },
    "scripts": {
        "post-create-project-cmd": [
            "composer exec -- wp setup"
        ],
        "strauss": [
            "test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/latest/download/strauss.phar",
            "@php bin/strauss.phar"
        ],
        "post-install-cmd": [
            "@strauss"
        ],
        "post-update-cmd": [
            "@strauss"
        ],
        "phpstan": "@php ./vendor/bin/phpstan analyse",
        "phpstan:ci": "@php ./vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr",
        "phpcs": "@php ./vendor/bin/phpcs --report-full",
        "phpcs:ci": "@phpcs --report-checkstyle=./phpcs-report.xml",
        "phpcbf": "@php ./vendor/bin/phpcbf"
    },
    "extra": {
        "installer-paths": {
            "vendor/{$vendor}/{$name}/": [
                "type:wordpress-plugin"
            ]
        },
        "strauss": {
            "target_directory": "vendor/vendor-prefixed",
            "namespace_prefix": "Cookiex_CMP\\Dependencies\\",
            "classmap_prefix": "Cookiex_CMP",
            "constant_prefix": "COOKIEX_CMP",
            "exclude_from_copy": {
                "packages": [
                    "timber/timber",
                    "twig/twig"
                ]
            },
            "exclude_from_prefix": {
                "packages": [
                    "timber/timber",
                    "twig/twig"
                ]
            },
            "delete_vendor_files": true
        }
    },
    "config": {
        "allow-plugins": {
            "phpstan/extension-installer": true,
            "composer/installers": true,
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    },
    "require": {
        "php": ">=8.0"
    }
}