Download the PHP package auto1-oss/service-api-handler-bundle without Composer
On this page you can find all versions of the php package auto1-oss/service-api-handler-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download auto1-oss/service-api-handler-bundle
More information about auto1-oss/service-api-handler-bundle
Files in auto1-oss/service-api-handler-bundle
Download auto1-oss/service-api-handler-bundle
More information about auto1-oss/service-api-handler-bundle
Files in auto1-oss/service-api-handler-bundle
Vendor auto1-oss
Package service-api-handler-bundle
Short Description Auto1 Service API Handler Bundle for creating micro-services with PHP
License MIT
Package service-api-handler-bundle
Short Description Auto1 Service API Handler Bundle for creating micro-services with PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package service-api-handler-bundle
Installation
Register required Bundles:
config/routing.yml
Description
Use Endpoints specifications to handle symfony request flow.
Prepares RequestDTO
from $_GLOBALS
and serializes response from ServiceResponse(ResponseDTO, HTTP_CODE)
Controller
- Controllers must be tagged with
controller.service_arguments
and suffixed withController
- Action methods must be suffixed with
Action
ServiceResponse
- Fully imitates, but not implements behaviour of
HttpFoundation\Response
(JsonResponse) - Agnostic to the response format, and performs serialization after being returned from the controller
Example of EP definition (yaml):
Example of ServiceRequest implementation:
Example of EP implementation:
Swagger generation
For symfony:>=6.0
and nelmio/api-doc-bundle:>=4.0
swagger json file is generated in OpenApi v3 format "openapi": "3.0.0"
.
For previous versions of symfony
and nelmio/api-doc-bundle
swagger json file is generated in Swagger V2 format "swagger": "2.0"
.
Debug
For more info - have a look at service-api-components-bundle usage:
All versions of service-api-handler-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
auto1-oss/service-api-request Version ^1.0
auto1-oss/service-api-components-bundle Version ^1.0
symfony/serializer Version ~3.0|~4.0|~5.0|~6.0
symfony/monolog-bridge Version ~3.0|~4.0|~5.0|~6.0
symfony/dependency-injection Version ~3.0|~4.0|~5.0|~6.0
symfony/config Version ~3.0|~4.0|~5.0|~6.0
symfony/http-kernel Version ~3.0|~4.0|~5.0|~6.0
symfony/http-foundation Version ~3.0|~4.0|~5.0|~6.0
symfony/property-info Version ^3.4.2|~4.0|~5.0|~6.0
symfony/yaml Version ~3.0|~4.0|~5.0|~6.0
monolog/monolog Version ~1.22
symfony/routing Version ~4.1|~5.0|~6.0
auto1-oss/service-api-request Version ^1.0
auto1-oss/service-api-components-bundle Version ^1.0
symfony/serializer Version ~3.0|~4.0|~5.0|~6.0
symfony/monolog-bridge Version ~3.0|~4.0|~5.0|~6.0
symfony/dependency-injection Version ~3.0|~4.0|~5.0|~6.0
symfony/config Version ~3.0|~4.0|~5.0|~6.0
symfony/http-kernel Version ~3.0|~4.0|~5.0|~6.0
symfony/http-foundation Version ~3.0|~4.0|~5.0|~6.0
symfony/property-info Version ^3.4.2|~4.0|~5.0|~6.0
symfony/yaml Version ~3.0|~4.0|~5.0|~6.0
monolog/monolog Version ~1.22
symfony/routing Version ~4.1|~5.0|~6.0
The package auto1-oss/service-api-handler-bundle contains the following files
Loading the files please wait ....