troytft / rest-api-bundle
REST API Bundle is abstraction layer for requests and responses
v0.37.4
2026-03-20 10:23 UTC
Requires
- php: >=8.1
- ext-json: *
- devizzent/cebe-php-openapi: ^1.0
- doctrine/annotations: ^1.14
- doctrine/doctrine-bundle: ^2.4
- doctrine/orm: ^2.9
- phpdocumentor/reflection-docblock: ^5.4|^6.4
- symfony/cache: ^5.4|^6.4
- symfony/expression-language: ^5.4|^6.4
- symfony/filesystem: ^5.4|^6.4
- symfony/finder: ^5.4|^6.4
- symfony/framework-bundle: ^5.4|^6.4
- symfony/http-kernel: ^5.4|^6.4
- symfony/property-info: ^5.4|^6.4
- symfony/routing: ^5.4|^6.4
- symfony/serializer: ^5.4|^6.4
- symfony/translation: ^5.4|^6.4
- symfony/validator: ^5.4|^6.4
- symfony/yaml: ^5.4|^6.4
Requires (Dev)
- nyholm/symfony-bundle-test: ^2.0
- phpbench/phpbench: ^1.0.4
- phpstan/phpstan: ~2.1.16
- phpunit/phpunit: ~10.5.46
- spatie/phpunit-snapshot-assertions: ~5.2.0
- symplify/easy-coding-standard: ^12.5.20
This package is auto-updated.
Last update: 2026-06-12 18:09:05 UTC
README
Features:
- Abstraction level for requests: describe jsonBody/queryString by php class, properties are configured by attributes/annotations
- Abstraction level for responses: describe response object by php class, properties are configured by public getters
- Auto-generated documentation: generate OpenAPI specification without additional code, just add
#[OpenApi\Endpoint(...)]
Work in progress.
See docs/README.md for detailed documentation.