nelmio/NelmioApiDocBundle

Generates documentation for your REST API from attributes

PHP

2,373

1,052 commits

updated Oct 12, 2026

See the code

README

NelmioApiDocBundle

Build Status Codecov Total Downloads Latest Stable Version PHP Version License

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.

FrankenPHP worker mode

The bundle also runs under FrankenPHP worker mode and other long-running workers, see FrankenPHP and long-running workers.

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

JetBrains logo

JetBrains sponsors this project by providing an open-source license for their tools.

License

This bundle is released under the MIT license.

api
api-documentation
bundle
openapi
php
redoc
swagger
swagger-php
symfony
symfony-bundle

nelmio/NelmioApiDocBundle

Generates documentation for your REST API from attributes

PHP

2,373

1,052 commits

updated Oct 12, 2026

See the code

README

NelmioApiDocBundle

Build Status Codecov Total Downloads Latest Stable Version PHP Version License

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.

FrankenPHP worker mode

The bundle also runs under FrankenPHP worker mode and other long-running workers, see FrankenPHP and long-running workers.

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

JetBrains logo

JetBrains sponsors this project by providing an open-source license for their tools.

License

This bundle is released under the MIT license.

api
api-documentation
bundle
openapi
php
redoc
swagger
swagger-php
symfony
symfony-bundle

Project health

Overall

4.8/10

Maintained

10/10

Code review

6/10
OpenSSF Scorecard

Significant stargazers

Christophe Coevoet

2,144 followers · starred Apr 2012

Kévin Dunglas

4,629 followers · starred Apr 2014

William Durand

1,831 followers · starred Apr 2012

Alex Vasilenko

35 followers · starred Sep 2013