nelmio / api-doc-bundle
Generates documentation for your REST API from attributes
Fund package maintenance!
DjordyKoert
Installs: 52 943 577
Dependents: 306
Suggesters: 38
Security: 0
Stars: 2 250
Watchers: 62
Forks: 847
Open Issues: 153
Type:symfony-bundle
Requires
- php: >=8.1
- ext-json: *
- phpdocumentor/reflection-docblock: ^5.0
- phpdocumentor/type-resolver: ^1.8.2
- psr/cache: ^1.0 || ^2.0 || ^3.0
- psr/container: ^1.0 || ^2.0
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/config: ^6.4 || ^7.1
- symfony/console: ^6.4 || ^7.1
- symfony/dependency-injection: ^6.4 || ^7.1
- symfony/deprecation-contracts: ^2.1 || ^3
- symfony/framework-bundle: ^6.4 || ^7.1
- symfony/http-foundation: ^6.4 || ^7.1
- symfony/http-kernel: ^6.4 || ^7.1
- symfony/options-resolver: ^6.4 || ^7.1
- symfony/property-info: ^6.4 || ^7.1
- symfony/routing: ^6.4 || ^7.1
- zircote/swagger-php: ^4.11.1 || ^5.0
Requires (Dev)
- api-platform/core: ^3.2
- friendsofphp/php-cs-fixer: ^3.52
- friendsofsymfony/rest-bundle: ^3.2.0
- jms/serializer: ^3.32
- jms/serializer-bundle: ^5.5
- phpstan/phpstan: ^1.10
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpstan/phpstan-symfony: ^1.3
- phpunit/phpunit: ^10.5
- symfony/asset: ^6.4 || ^7.1
- symfony/browser-kit: ^6.4 || ^7.1
- symfony/cache: ^6.4 || ^7.1
- symfony/dom-crawler: ^6.4 || ^7.1
- symfony/expression-language: ^6.4 || ^7.1
- symfony/form: ^6.4 || ^7.1
- symfony/phpunit-bridge: ^6.4 || ^7.1
- symfony/property-access: ^6.4 || ^7.1
- symfony/security-csrf: ^6.4 || ^7.1
- symfony/serializer: ^6.4 || ^7.1
- symfony/stopwatch: ^6.4 || ^7.1
- symfony/templating: ^6.4 || ^7.1
- symfony/twig-bundle: ^6.4 || ^7.1
- symfony/uid: ^6.4 || ^7.1
- symfony/validator: ^6.4 || ^7.1
- willdurand/hateoas-bundle: ^2.7
- willdurand/negotiation: ^3.0
Suggests
- api-platform/core: For using an API oriented framework.
- friendsofsymfony/rest-bundle: For using the parameters annotations.
- jms/serializer-bundle: For describing your models.
- symfony/asset: For using the Swagger UI.
- symfony/cache: For using a PSR-6 compatible cache implementation with the API doc generator.
- symfony/form: For describing your form type models.
- symfony/monolog-bundle: For using a PSR-3 compatible logger implementation with the API PHP describer.
- symfony/security-csrf: For using csrf protection tokens in forms.
- symfony/serializer: For describing your models.
- symfony/twig-bundle: For using the Swagger UI.
- symfony/validator: For describing the validation constraints in your models.
- willdurand/hateoas-bundle: For extracting HATEOAS metadata.
Conflicts
- zircote/swagger-php: 4.8.7
- 5.x-dev
- v5.0.1
- v5.0.0
- v5.0.0-beta7
- v5.0.0-beta6
- v5.0.0-beta5
- v5.0.0-beta4
- v5.0.0-beta3
- v5.0.0-beta2
- v5.0.0-beta1
- 4.x-dev
- v4.38.2
- v4.38.1
- v4.38.0
- v4.37.1
- v4.37.0
- v4.36.2
- v4.36.1
- v4.36.0
- v4.35.2
- v4.35.1
- v4.35.0
- v4.34.1
- v4.34.0
- v4.33.6
- v4.33.5
- v4.33.4
- v4.33.3
- v4.33.2
- v4.33.1
- v4.33.0
- v4.32.3
- v4.32.2
- v4.32.1
- v4.32.0
- v4.31.0
- v4.30.0
- v4.29.3
- v4.29.2
- v4.29.1
- v4.29.0
- v4.28.0
- v4.27.1
- v4.27.0
- v4.26.2
- v4.26.1
- v4.26.0
- 4.25.3
- 4.25.2
- v4.25.1
- v4.25.0
- v4.24.1
- v4.24.0
- v4.23.1
- v4.23.0
- v4.22.1
- v4.22.0
- v4.21.0
- v4.20.0
- v4.19.3
- v4.19.2
- v4.19.1
- v4.19.0
- v4.18.3
- v4.18.2
- v4.18.1
- v4.18.0
- v4.17.1
- v4.17.0
- v4.16.2
- v4.16.1
- v4.16.0
- v4.15.3
- v4.15.2
- v4.15.1
- v4.15.0
- v4.14.0
- v4.13.0
- v4.12.0
- v4.11.1
- v4.11.0
- v4.10.2
- v4.10.1
- v4.10.0
- v4.9.0
- v4.8.2
- v4.8.1
- v4.8.0
- v4.7.0
- v4.6.2
- v4.6.1
- v4.6.0
- v4.5.0
- v4.4.0
- v4.3.0
- v4.2.0
- v4.1.1
- v4.1.0
- v4.0.1
- v4.0.0
- v4.0.0-BETA2
- v4.0.0-BETA1
- 3.x-dev
- v3.10.1
- v3.10.0
- v3.9.1
- v3.9.0
- v3.8.2
- v3.8.1
- v3.8.0
- v3.7.4
- v3.7.3
- v3.7.2
- v3.7.1
- v3.7.0
- v3.6.1
- v3.6.0
- v3.5.0
- v3.4.0
- v3.3.1
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.0
- v3.0.0-BETA4
- v3.0.0-BETA3
- v3.0.0-BETA2
- v3.0.0-BETA1
- 2.x-dev
- 2.13.5
- 2.13.4
- 2.13.3
- 2.13.2
- 2.13.1
- 2.13.0
- 2.12.0
- 2.11.2
- 2.11.1
- 2.11.0
- 2.10.3
- 2.10.2
- 2.10.1
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.0.1
- 1.0.0
- dev-fix-2462
- dev-fix-2286
- dev-security-isgranted
- dev-update-master-references-to-4.x
- dev-5.x-property-promotion
This package is auto-updated.
Last update: 2025-03-28 20:47:45 UTC
README
The NelmioApiDocBundle bundle allows you to generate a decent documentation for your APIs.
Installation
Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:
composer require nelmio/api-doc-bundle
Documentation
Read the documentation on symfony.com
Migrate from 4.x to 5.0
To migrate from 4.x to 5.0, follow our guide.
This version comes with the following major changes:
- The bundle now requires PHP 8.1 or higher.
- Support for annotations has been removed in favor of PHP 8 attributes.
- Minimum Symfony version is now 6.4.
- Major cleanup and simplification of the codebase.
Migrate from 3.x to 4.0
To migrate from 3.x to 4.0, follow our guide.
Version 4.0 brings OpenAPI 3.0 support. If you want to stick to Swagger 2.0, you should use the version 3 of this bundle.
Migrate from 2.x to 3.0
To migrate from 2.x to 3.0, follow our guide.
Contributing
See CONTRIBUTING file.
Running the Tests
Install the Composer dependencies:
git clone https://github.com/nelmio/NelmioApiDocBundle.git
cd NelmioApiDocBundle
composer update
Then run the test suite:
composer phpunit
Sponsored by
JetBrains sponsors this project by providing an open-source license for their tools.