{
"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": "Oliver Klee",
"email": "oliver@phplist.com",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/phpList/rest-api/issues",
"forum": "https://discuss.phplist.org/",
"source": "https://github.com/phpList/rest-api"
},
"require": {
"php": "~7.0.0 || ~7.1.0 || ~7.2.0",
"phplist/core": "dev-phplist3",
"friendsofsymfony/rest-bundle": "^2.3",
"sensio/framework-extra-bundle": "5.1.0",
"roave/security-advisories": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "^6.5.6",
"phpunit/phpunit-mock-objects": "^5.0.6",
"phpunit/dbunit": "^3.0.0",
"guzzlehttp/guzzle": "^6.3.0",
"squizlabs/php_codesniffer": "^3.2.0",
"phpstan/phpstan": "^0.7.0",
"nette/caching": "^2.5.0 || ^3.0.0",
"nikic/php-parser": "^3.1.0",
"phpmd/phpmd": "^2.6.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::createParametersConfiguration",
"PhpList\\Core\\Composer\\ScriptHandler::clearAllCaches"
],
"post-install-cmd": [
"@create-directories",
"@update-configuration"
],
"post-update-cmd": [
"@create-directories",
"@update-configuration"
]
},
"extra": {
"branch-alias": {
"dev-master": "4.0.x-dev"
},
"symfony-app-dir": "bin",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "public",
"symfony-tests-dir": "tests",
"phplist/core": {
"bundles": [
"FOS\\RestBundle\\FOSRestBundle",
"PhpList\\RestBundle\\PhpListRestBundle"
],
"routes": {
"rest-api": {
"resource": "@PhpListRestBundle/Controller/",
"type": "rest",
"prefix": "/api/v2"
}
},
"configuration": {
"fos_rest": {
"routing_loader": {
"include_format": false
},
"format_listener": {
"enabled": true,
"rules": [
{
"path": "^/api/v2/",
"fallback_format": "json"
},
{
"path": "^/",
"fallback_format": "html"
}
]
},
"view": {
"view_response_listener": {
"enabled": false
}
},
"exception": {
"enabled": true,
"messages": {
"Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException": true
}
},
"service": {
"view_handler": "my.secure_view_handler"
}
}
}
}
}
}