Download the PHP package paysera/lib-rest-bundle without Composer
On this page you can find all versions of the php package paysera/lib-rest-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paysera/lib-rest-bundle
More information about paysera/lib-rest-bundle
Files in paysera/lib-rest-bundle
Package lib-rest-bundle
Short Description Helps easily convert your regular controller to RESTful controller
License
Informations about the package lib-rest-bundle
PayseraRestBundle 
Deprecated, use https://github.com/paysera/lib-api-bundle instead.
This bundle provides means for rapid API development.
Installation
- Download bundle:
composer require paysera/lib-rest-bundle - Enable bundle:
Configuration
- Example of the full bundle configuration
Basic Usage
-
Create and configure your controller:
-
Create API service:
-
Configure your routing and add
api_key: - Optionally, add request and response mappers to your API service:
Here app_bundle.normalizer.data is a service implementing \Paysera\Component\Serializer\Normalizer\DenormalizerInterface, app_bundle.normalizer.custom_response is a service implementing \Paysera\Component\Serializer\Normalizer\NormalizerInterface. Both of these services must be configured as public in their service definitions.
Testing
php7.4
php8.0
debugging
php7.4
php8.0
All versions of lib-rest-bundle with dependencies
paysera/lib-serializer Version ^3.0
symfony/config Version ^4.4 || ^5.0 || ^6.0 || ^7.4
symfony/dependency-injection Version ^4.4 || ^5.0 || ^6.0 || ^7.4
symfony/validator Version ^4.4 || ^5.0 || ^6.0 || ^7.4
symfony/security-core Version ^4.4 || ^5.0 || ^6.0 || ^7.4
symfony/routing Version ^4.4 || ^5.0 || ^6.0 || ^7.4
symfony/http-foundation Version ^4.4 || ^5.0 || ^6.0 || ^7.4
symfony/http-kernel Version ^4.4 || ^5.0 || ^6.0 || ^7.4
doctrine/persistence Version ^3.2