{
    "name": "facile-it/php-openid-client",
    "description": "OpenID (OIDC) Client",
    "type": "library",
    "license": "MIT",
    "authors": [
        {
            "name": "Thomas Vargiu",
            "email": "thomas.vargiu@facile.it"
        }
    ],
    "minimum-stability": "stable",
    "config": {
        "sort-packages": true,
        "allow-plugins": {
            "facile-it/facile-coding-standard": true,
            "laminas/laminas-component-installer": true,
            "php-http/discovery": true
        }
    },
    "keywords": [
        "openid",
        "openid connect",
        "oidc",
        "oauth2",
        "token",
        "authentication",
        "identity"
    ],
    "require": {
        "php": "^8.1",
        "ext-json": "*",
        "facile-it/php-jose-verifier": "^0.5.0",
        "php-http/discovery": "^1.6",
        "psr/http-client": "^1.0",
        "psr/http-client-implementation": "^1.0",
        "psr/http-factory": "^1.0",
        "psr/http-factory-implementation": "^1.0",
        "psr/http-message": "^1.0 || ^2.0",
        "psr/http-message-implementation": "^1.0",
        "psr/http-server-middleware": "^1.0",
        "spomky-labs/aes-key-wrap": "^7.0",
        "symfony/polyfill-php83": "^1.33",
        "web-token/jwt-library": "^3.4.3"
    },
    "autoload": {
        "files": [
            "src/functions/base64url_decode.php",
            "src/functions/base64url_encode.php",
            "src/functions/check_server_response.php",
            "src/functions/derived_key.php",
            "src/functions/get_endpoint_uri.php",
            "src/functions/jose_secret_key.php",
            "src/functions/parse_callback_params.php",
            "src/functions/parse_metadata_response.php"
        ],
        "psr-4": {
            "Facile\\OpenIDClient\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Facile\\OpenIDClientTest\\": "tests/",
            "Facile\\OpenIDClient\\ConformanceTest\\": "conformance/src/"
        }
    },
    "require-dev": {
        "dflydev/fig-cookies": "^2.0 || ^3.0",
        "facile-it/facile-coding-standard": "^0.5.2 || ^1.0.0",
        "friendsofphp/php-cs-fixer": "^3.0",
        "laminas/laminas-component-installer": "^2.1 || ^3.0",
        "laminas/laminas-config-aggregator": "^1.1",
        "laminas/laminas-di": "^3.1",
        "laminas/laminas-diactoros": "^2.1 || ^3.0",
        "laminas/laminas-servicemanager": "^3.4 || ^4.0",
        "php-http/cache-plugin": "^1.6 || ^2.0",
        "php-http/curl-client": "^2.0",
        "php-http/guzzle7-adapter": "^0.1.0 || ^1.0",
        "phpspec/prophecy": "^1.10.3",
        "phpspec/prophecy-phpunit": "^2.0",
        "phpunit/phpunit": "^10.5.60 || ^11.5.46 || ^12.0.0",
        "symfony/console": "^4.3 || ^5.0 || ^6.0 || ^7.0 || ^8.0",
        "vimeo/psalm": "^6.14.3"
    },
    "suggest": {
        "facile-it/php-oauth2-http-client": "To use a PSR HTTP client to interact with OAuth2/OpenID protected APIs",
        "web-token/jwt-signature-algorithm-hmac": "To use the client_secret_jwt auth method and symmetric key signature",
        "dflydev/fig-cookies": "To use the SessionCookieMiddleware"
    },
    "scripts": {
        "cs-check": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run --diff --allow-risky=yes",
        "cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --diff --allow-risky=yes",
        "psalm": "psalm",
        "test": "phpunit",
        "test-coverage": "phpunit --coverage-text",
        "check": [
            "@cs-check",
            "@psalm",
            "@test"
        ]
    }
}
