Download the PHP package open-solid/api without Composer
On this page you can find all versions of the php package open-solid/api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package api
OpenSolid API Bundle
A Symfony bundle that automatically generates OpenAPI specifications from your controller classes using swagger-php.
Define your API endpoints with PHP attributes, and the bundle takes care of generating a complete OpenAPI spec — including operations, request bodies, query parameters, path parameters, response schemas, and pagination.
Features
- Route-driven spec generation — OpenAPI operations are derived from custom routing attributes (
#[Get],#[Post], etc.), eliminating duplicate annotations - Automatic request body inference — Detects
#[MapRequestPayload]parameters and generates request body schemas - Query parameter expansion — Expands
#[MapQueryString]DTOs into individual query parameters - Response type inference — Infers response schemas from controller return types
- Pagination support — Built-in
Paginatorinterface with standardized paginated response format - GetOrCreate pattern — Dual 200/201 responses for upsert endpoints
- Custom path parameter resolvers — Extensible resolution of value object path parameters (e.g.
ProductIdto UUID) - JSON streaming — Responses are streamed via Symfony's JsonStreamer for memory efficiency
- Serve & export — Serve the spec at
/docs.jsonor export it withphp bin/console openapi:generate
Installation
Quick Start
This single class generates a complete OpenAPI operation with path parameters, response schema, and status codes — no extra annotations needed.
Documentation
- Getting Started
- Routing Attributes
- Request & Response Handling
- Pagination
- OpenAPI Generation
- Path Parameter Resolvers
- Configuration Reference
License
MIT
All versions of api with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.4
doctrine/collections Version ^2.6|^3.0
open-solid/core Version ^0.3.1
symfony/console Version ^7.4|^8.0
symfony/framework-bundle Version ^7.4|^8.0
symfony/json-streamer Version ^7.4|^8.0
symfony/serializer Version ^7.4|^8.0
symfony/type-info Version ^7.4|^8.0
zircote/swagger-php Version ^6.0
doctrine/collections Version ^2.6|^3.0
open-solid/core Version ^0.3.1
symfony/console Version ^7.4|^8.0
symfony/framework-bundle Version ^7.4|^8.0
symfony/json-streamer Version ^7.4|^8.0
symfony/serializer Version ^7.4|^8.0
symfony/type-info Version ^7.4|^8.0
zircote/swagger-php Version ^6.0
The package open-solid/api contains the following files
Loading the files please wait ...