Download the PHP package mcc-api-tools/request-object-bundle without Composer
On this page you can find all versions of the php package mcc-api-tools/request-object-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mcc-api-tools/request-object-bundle
More information about mcc-api-tools/request-object-bundle
Files in mcc-api-tools/request-object-bundle
Package request-object-bundle
Short Description Simple RequestObject
License MIT
Informations about the package request-object-bundle
MCC Api Tools / Request Object Bundle
Request Object Bundle is a Symfony bundle designed to simplify handling HTTP requests by automatically transforming request parameters into objects and validating them.
Requirements
- PHP 8.1 or higher (with
php-json
extension) - Symfony 6.2 or newer
Installation
Run the following command to install the package via Composer:
Configuration
-
Add the package to your Symfony project (if not already added):
-
Create a request object that will represent your HTTP request data:
- Use the request object in your controller:
Usage
-
Validation: Request objects are automatically validated based on the constraints defined in their properties. If validation fails, a response with validation errors will be returned.
- Accessing Data: You can access request data directly through the request object properties in your controller.
Testing
To run tests, use the following command:
Contributing
If you would like to contribute to this package, please open an issue or submit a pull request in the GitHub repository.
License
This project is licensed under the MIT License
All versions of request-object-bundle with dependencies
ext-json Version *
symfony/config Version ^6.2|7.0
symfony/dependency-injection Version ^6.2|^7.0
symfony/http-foundation Version ^6.2|^7.0
symfony/http-kernel Version ^6.2|^7.0
symfony/property-access Version ^6.2|^7.0
symfony/serializer Version ^6.2|^7.0
symfony/validator Version ^6.2|^7.0