{ "name": "zircote/swagger-php", "type": "library", "license": "Apache-2.0", "bin": [ "bin/openapi" ], "description": "Generate interactive documentation for your RESTful API using PHP attributes (preferred) or 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", "optimize-autoloader": true, "sort-packages": true, "allow-plugins": { "composer/package-versions-deprecated": true } }, "minimum-stability": "stable", "extra": { "branch-alias": { "dev-master": "7.x-dev" } }, "require": { "php": ">=8.2", "nikic/php-parser": "^5.0", "phpstan/phpdoc-parser": "^2.0", "psr/log": "^1.1 || ^2.0 || ^3.0", "radebatz/type-info-extras": "^1.0.11", "symfony/console": "^5.4 || ^6.4 || ^7.0 || ^8.0", "symfony/deprecation-contracts": "^2 || ^3", "symfony/finder": "^5.4 || ^6.4 || ^7.0 || ^8.0", "symfony/yaml": "^5.4 || ^6.4 || ^7.0 || ^8.0" }, "autoload": { "psr-4": { "OpenApi\\": "src", "OpenApi\\Rector\\": "rector/src" } }, "autoload-dev": { "exclude-from-classmap": [ "/tests/Fixtures" ], "psr-4": { "OpenApi\\Rector\\Tests\\": "rector/tests/", "OpenApi\\Tools\\": "tools/src/", "OpenApi\\Tools\\Tests\\": "tools/tests/", "OpenApi\\Tests\\": "tests/", "AnotherNamespace\\": "tests/Fixtures/AnotherNamespace" } }, "require-dev": { "doctrine/annotations": "^2.0", "friendsofphp/php-cs-fixer": "3.95.29", "phpbench/phpbench": "^1.7", "phpstan/phpstan": "2.3.5", "phpunit/phpunit": "^11.5 || >=12.5.22", "rector/rector": "2.8.3" }, "conflict": { "symfony/console": "<5.4.35", "symfony/string": "<5.4.41" }, "scripts-descriptions": { "cs": "Fix all codestyle issues", "rector": "Automatic refactoring", "lint": "Test codestyle", "test": "Run the unit tests", "bench": "Run the benchmarks (phpbench)", "bench:phases": "Show where a build spends its time, by phase", "analyse": "Run static analysis (phpstan)", "redocly": "Validate generated specs with Redocly", "docs:check": "Verify documentation accuracy against the codebase", "docs:gen": "Rebuild reference documentation", "docs:dev": "Run dev server for local development of gh-pages", "docs:build": "Re-build static gh-pages" }, "scripts": { "cs": "export XDEBUG_MODE=off && php-cs-fixer fix --allow-risky=yes", "rector": "rector process src tests docs/examples", "lint": [ "@cs --dry-run", "@rector --dry-run" ], "test": [ "export XDEBUG_MODE=off && phpunit --display-all-issues --exclude-testsuite 'Rector Test Suite' @additional_args", "export XDEBUG_MODE=off && phpunit --display-all-issues --testsuite 'Rector Test Suite' @additional_args" ], "bench": "export XDEBUG_MODE=off && phpbench run --report=aggregate", "bench:phases": "export XDEBUG_MODE=off && php tests/Benchmarks/phases.php", "analyse": [ "export XDEBUG_MODE=off && phpstan clear-result-cache -q && phpstan analyse --memory-limit=3G", "export XDEBUG_MODE=off && phpstan analyse -c phpstan-level5.neon.dist --memory-limit=3G" ], "redocly": "npm run redocly -- lint 'docs/examples/specs/**/*.yaml' 'docs/examples/augmenters/**/*.yaml' 'docs/snippets/guide/extension-points/*.yaml' 'tests/Fixtures/Scratch/*.yaml'", "docs:check": "export XDEBUG_MODE=off && phpunit --filter DocsAccuracyTest", "docs:gen": "@php tools/docgen.php", "docs:dev": "cd docs && npm run dev", "docs:build": [ "@docs:gen", "cd docs && npm run build" ] } }