83 lines
2.1 KiB
JSON
83 lines
2.1 KiB
JSON
{
|
|
"name": "zircote/swagger-php",
|
|
"type": "library",
|
|
"license": "Apache-2.0",
|
|
"bin": [
|
|
"bin/openapi"
|
|
],
|
|
"description": "swagger-php - Generate interactive documentation for your RESTful API using phpdoc annotations",
|
|
"keywords": [
|
|
"json",
|
|
"rest",
|
|
"api",
|
|
"service discovery"
|
|
],
|
|
"homepage": "https://github.com/zircote/swagger-php/",
|
|
"authors": [
|
|
{
|
|
"name": "Robert Allen",
|
|
"email": "zircote@gmail.com"
|
|
},
|
|
{
|
|
"name": "Bob Fanger",
|
|
"email": "bfanger@gmail.com",
|
|
"homepage": "https://bfanger.nl"
|
|
},
|
|
{
|
|
"name": "Martin Rademacher",
|
|
"email": "mano@radebatz.net",
|
|
"homepage": "https://radebatz.net"
|
|
}
|
|
],
|
|
"config": {
|
|
"bin-dir": "bin",
|
|
"sort-packages": true
|
|
},
|
|
"minimum-stability": "stable",
|
|
"require": {
|
|
"php": ">=7.2",
|
|
"ext-json": "*",
|
|
"doctrine/annotations": "^1.7",
|
|
"symfony/finder": ">=2.2",
|
|
"symfony/yaml": ">=3.3"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"OpenApi\\": "src"
|
|
},
|
|
"files": [
|
|
"src/functions.php"
|
|
]
|
|
},
|
|
"require-dev": {
|
|
"friendsofphp/php-cs-fixer": "^2.17 || ^3.0",
|
|
"phpunit/phpunit": ">=8"
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"OpenApi\\Tests\\": "tests/",
|
|
"AnotherNamespace\\": "tests/Fixtures/AnotherNamespace"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"cs": "php-cs-fixer fix --allow-risky=yes",
|
|
"lint": "@cs --dry-run",
|
|
"test": [
|
|
"phpunit",
|
|
"@lint"
|
|
],
|
|
"phpstan": "phpstan analyze --level=3 src | grep -v 'does not accept default value of type string'",
|
|
"psalm": "psalm",
|
|
"analyse": [
|
|
"@phpstan",
|
|
"@psalm"
|
|
],
|
|
"validate-examples": {
|
|
"spectral": "for ff in `find Examples -name *.yaml`; do spectral lint $ff; done",
|
|
"swagger-cli": "for ff in `find Examples -name *.yaml`; do swagger-cli validate $ff; done"
|
|
},
|
|
"docs": "./docs/node_modules/.bin/vuepress dev docs/",
|
|
"deploy_docs": "./docs/node_modules/.bin/vuepress build docs/ && cp -r .git docs/.vuepress/dist/.git && cd docs/.vuepress/dist/ && git symbolic-ref HEAD refs/heads/gh-pages && git add --all"
|
|
}
|
|
}
|