{
    "name": "phplist/rest-api",
    "description": "A REST API for phpList, the world's most popular open source newsletter manager",
    "type": "phplist-module",
    "keywords": [
        "phplist",
        "email",
        "newsletter",
        "manager",
        "rest",
        "api"
    ],
    "homepage": "https://www.phplist.com/",
    "license": "AGPL-3.0-or-later",
    "authors": [
        {
            "name": "Xheni Myrtaj",
            "email": "xheni@phplist.com",
            "role": "Former developer"
        },
        {
            "name": "Oliver Klee",
            "email": "oliver@phplist.com",
            "role": "Former developer"
        },
        {
            "name": "Tatevik Grigoryan",
            "email": "tatevik@phplist.com",
            "role": "Maintainer"
        }
    ],
    "repositories": [
      {
        "type": "vcs",
        "url": "https://github.com/TatevikGr/rss-bundle.git"
      }
    ],
    "support": {
        "issues": "https://github.com/phpList/rest-api/issues",
        "forum": "https://discuss.phplist.org/",
        "source": "https://github.com/phpList/rest-api"
    },
    "require": {
        "php": "^8.1",
        "phplist/core": "dev-dev",
        "friendsofsymfony/rest-bundle": "*",
        "symfony/test-pack": "^1.0",
        "symfony/process": "^6.4",
        "zircote/swagger-php": "^4.11",
        "ext-dom": "*",
        "tatevikgr/rss-feed": "dev-main as 0.1.0",
        "psr/simple-cache": "^3.0",
        "symfony/expression-language": "^6.4",
        "nelmio/cors-bundle": "^2.4"
    },
    "require-dev": {
        "phpunit/phpunit": "^10.0",
        "guzzlehttp/guzzle": "^7.2.0",
        "squizlabs/php_codesniffer": "^3.2.0",
        "phpstan/phpstan": "^1.10",
        "nette/caching": "^3.0.0",
        "nikic/php-parser": "^4.19.1",
        "phpmd/phpmd": "^2.6.0",
        "doctrine/instantiator": "^2.0."
    },
    "autoload": {
        "psr-4": {
            "PhpList\\RestBundle\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "PhpList\\RestBundle\\Tests\\": "tests/"
        }
    },
    "scripts": {
        "list-modules": [
            "PhpList\\Core\\Composer\\ScriptHandler::listModules"
        ],
        "create-directories": [
            "PhpList\\Core\\Composer\\ScriptHandler::createBinaries",
            "PhpList\\Core\\Composer\\ScriptHandler::createPublicWebDirectory"
        ],
        "update-configuration": [
            "PhpList\\Core\\Composer\\ScriptHandler::createGeneralConfiguration",
            "PhpList\\Core\\Composer\\ScriptHandler::createBundleConfiguration",
            "PhpList\\Core\\Composer\\ScriptHandler::createRoutesConfiguration",
            "PhpList\\Core\\Composer\\ScriptHandler::createDotenvConfiguration",
            "PhpList\\Core\\Composer\\ScriptHandler::createParametersConfiguration",
            "PhpList\\Core\\Composer\\ScriptHandler::clearAllCaches"
        ],
        "post-install-cmd": [
            "@create-directories",
            "@update-configuration"
        ],
        "post-update-cmd": [
            "@create-directories",
            "@update-configuration"
        ],
        "openapi-generate": [
            "vendor/bin/openapi -o docs/openapi.json --format json src"
        ]
    },
    "extra": {
        "symfony-app-dir": "bin",
        "symfony-bin-dir": "bin",
        "symfony-var-dir": "var",
        "symfony-web-dir": "public",
        "symfony-tests-dir": "tests",
        "phplist/core": {
            "bundles": [
                "PhpList\\RestBundle\\PhpListRestBundle"
            ],
            "routes": {
                "rest-api-identity": {
                    "resource": "@PhpListRestBundle/Identity/Controller/",
                    "type": "attribute",
                    "prefix": "/api/v2"
                },
                "rest-api-subscription": {
                    "resource": "@PhpListRestBundle/Subscription/Controller/",
                    "type": "attribute",
                    "prefix": "/api/v2"
                },
                "rest-api-messaging": {
                    "resource": "@PhpListRestBundle/Messaging/Controller/",
                    "type": "attribute",
                    "prefix": "/api/v2"
                },
                "rest-api-configuration": {
                    "resource": "@PhpListRestBundle/Configuration/Controller/",
                    "type": "attribute",
                    "prefix": "/api/v2"
                },
                "rest-api-analitics": {
                    "resource": "@PhpListRestBundle/Statistics/Controller/",
                    "type": "attribute",
                    "prefix": "/api/v2"
                }
            }
        }
    },
    "config": {
        "allow-plugins": {
            "php-http/discovery": true
        }
    }
}
