Download the PHP package bilyiv/request-data-bundle without Composer
On this page you can find all versions of the php package bilyiv/request-data-bundle. 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 request-data-bundle
Request data bundle
This bundle allows you to represent request data in a structured and useful way by creating request data classes.
Features:
- Detecting how to extract data depends on request method and
Content-Typeheader. - Representing and normalizing query parameters for the
GETrequest method. - Representing
form,json,xmlrequest body for thePOST,PUT,PATCHrequest methods. - Defining supported formats and throwing exception if the request format is unsupported.
- Dispatching the finish event when request data is ready.
Installation
Run the following command using Composer:
Configuration
The default configuration is the following:
Usage
Create a request data class
Use it in your controller
Make requests
All the following requests will return the same json response:
GET request:
POST form request:
POST json request:
POST xml request:
POST csv request throws an exception because of unsupported format:
License
This bundle is released under the MIT license. See the included LICENSE file for more information.
All versions of request-data-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2
symfony/config Version ~3.4|~4.0
symfony/dependency-injection Version ~3.4|~4.0
symfony/http-kernel Version ~3.4|~4.0
symfony/serializer Version ~3.4|~4.0
symfony/event-dispatcher Version ~3.4|~4.0
symfony/property-access Version ~3.4|~4.0
symfony/config Version ~3.4|~4.0
symfony/dependency-injection Version ~3.4|~4.0
symfony/http-kernel Version ~3.4|~4.0
symfony/serializer Version ~3.4|~4.0
symfony/event-dispatcher Version ~3.4|~4.0
symfony/property-access Version ~3.4|~4.0
The package bilyiv/request-data-bundle contains the following files
Loading the files please wait ...