Download the PHP package peedro07/symfony-api-rest-bundle without Composer
On this page you can find all versions of the php package peedro07/symfony-api-rest-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peedro07/symfony-api-rest-bundle
More information about peedro07/symfony-api-rest-bundle
Files in peedro07/symfony-api-rest-bundle
Package symfony-api-rest-bundle
Short Description This bundle, with Symfony, makes it easier to manage the rendering of your data
License MIT
Informations about the package symfony-api-rest-bundle
PGTRest
Bundle to simplify Symfony API creation
Version 2.0. of the bundle works with Symfony 7.x.x
This bundle streamlines API development using convenient annotations. It requires the extension of AbstractPGTRest.
Getting Started
To begin, extend the bundle in your controller:
Ensure the responseOptionsService is initialized by invoking the parent constructor:
Example Usage
Utilize the bundle through an illustrative example:
Note: The view method accepts an array of data and optional parameters for $statusCode and $groups
Additional Features
When the formatDate option is set, the bundle will format the date fields in the response according to the specified format.
All versions of symfony-api-rest-bundle with dependencies
symfony/http-foundation Version ^7.0
symfony/event-dispatcher Version ^7.0
symfony/http-kernel Version ^7.0
symfony/framework-bundle Version ^7.0
symfony/serializer Version ^7.0
symfony/dependency-injection Version ^7.0