Download the PHP package open-solid/open-api-bundle without Composer
On this page you can find all versions of the php package open-solid/open-api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download open-solid/open-api-bundle
More information about open-solid/open-api-bundle
Files in open-solid/open-api-bundle
Download open-solid/open-api-bundle
More information about open-solid/open-api-bundle
Files in open-solid/open-api-bundle
Vendor open-solid
Package open-api-bundle
Short Description Provides a tight integration of OpenApi into the Symfony full-stack framework
License MIT
Package open-api-bundle
Short Description Provides a tight integration of OpenApi into the Symfony full-stack framework
License MIT
Please rate this library. Is it a good library?
Informations about the package open-api-bundle
OpenApiBundle
Provides a tight integration of the famous zircote/swagger-php
library into the Symfony full-stack framework for generating
OpenAPI spec and building Restful APIs quickly.
This bundle is especially created for API-First development.
Installation
Import the bundle's routes in config/routes.yaml
to show the Swagger API documentation:
Basic Sample
Define your OpenAPI spec and endpoint at the same time:
Main Features
- [x] Generate OpenAPI spec from PHP attributes (Mainly based on
zircote/swagger-php
)- Automatic
Operation
,Schema
andProperty
guessing from PHP classes and methods
- Automatic
- [x] Expose Swagger UI to explore the OpenAPI spec and test API endpoints
- [x] Export OpenAPI spec in JSON or YAML format (via HTTP and console command)
- [x] Import OpenAPI spec in JSON or YAML format (via config file)
- [x] Define Symfony routes and OpenAPI Paths using the same attributes:
#[Post]
,#[Get]
,#[Put]
,#[Patch]
,#[Delete]
- [x] Conditional OpenAPI Path/Route definition:
- Example:
#[Get('/me', when: 'service("toggle_me").isEnabled()')]
- Example:
- [x] Symfony attributes abbreviations:
#[Payload]
instead of#[MapRequestPayload]
#[Query]
instead of#[MapQueryString]
- [x] OpenAPI attributes abbreviations:
#[Path]
instead of#[PathParameter]
#[Param]
instead of#[QueryParameter]
- [x] Symfony's validation constraints definition using OpenAPI attributes:
- Example:
#[Property(minLength: 3, maxLength: 255)]
- Example:
- [x] Automatic controller response serialization (JSON format by default)
- [ ] Generate new endpoints from API spec (WIP) (based on
open-solid/open-api-assistant-bundle
)
License
This software is published under the MIT License
All versions of open-api-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
symfony/framework-bundle Version ^7.0
symfony/property-access Version ^7.0
symfony/serializer Version ^7.0
symfony/validator Version ^7.0
zircote/swagger-php Version ^4.7
symfony/expression-language Version ^7.0
symfony/framework-bundle Version ^7.0
symfony/property-access Version ^7.0
symfony/serializer Version ^7.0
symfony/validator Version ^7.0
zircote/swagger-php Version ^4.7
symfony/expression-language Version ^7.0
The package open-solid/open-api-bundle contains the following files
Loading the files please wait ....