Download the PHP package violines/rest-bundle without Composer
On this page you can find all versions of the php package violines/rest-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download violines/rest-bundle
More information about violines/rest-bundle
Files in violines/rest-bundle
Download violines/rest-bundle
More information about violines/rest-bundle
Files in violines/rest-bundle
Vendor violines
Package rest-bundle
Short Description violines/rest-bundle is a Symfony Bundle to create REST APIs. It focusses on HTTP standards and integrates the symfony/serializer and symfony/validator.
License MIT
Package rest-bundle
Short Description violines/rest-bundle is a Symfony Bundle to create REST APIs. It focusses on HTTP standards and integrates the symfony/serializer and symfony/validator.
License MIT
Please rate this library. Is it a good library?
Informations about the package rest-bundle
About
violines/rest-bundle is a Symfony Bundle to create REST APIs. It focusses on HTTP standards and integrates the symfony/serializer and symfony/validator.
Features
- Request body or query string to object conversion
- Response building from objects
- Configurable content negotiation
- Events to control symfony/serializer context
- Integration of symfony/validator
- Error Handling
- Optional Logging
Compatible with...
- Symfony 5.4 + 6
- PHP 8 + 8.1
Designed for...
modern architectures that apply Domain Driven Design principles, hexagonal architecture or similar concepts.
Install
How does it work?
- Create any PHP class (Entity, DTO, Command, Query, etc) and add the
#[HttpApi]
attribute or@HttpApi
annotation - Use any property attributes/annotations from symfony/serializer or symfony/validator
- Declare this PHP class as type of a controller argument
- Return an instance of this PHP class in the controller
Show Case
Find a sample of usage under: https://github.com/violines/rest-bundle-showcase.
Example
Wiki
For more details please check violines/rest-bundle Wiki.
Development setup
- copy docker/.env.dist to docker/.env and adjust to your needs
- cd docker/
- pull latest image(s): docker-compose pull
- create the container(s): docker-compose up -d
- run tests with
docker-compose exec php80 composer run test
All versions of rest-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
psr/log Version ^1.1 || ^2.0 || ^3.0
symfony/config Version ^5.4 || ^6.0
symfony/contracts Version ^2.5 || ^3.0
symfony/dependency-injection Version ^5.4 || ^6.0
symfony/http-kernel Version ^5.4 || ^6.0
symfony/http-foundation Version ^5.4 || ^6.0
symfony/serializer Version ^5.4 || ^6.0
symfony/validator Version ^5.4 || ^6.0
psr/log Version ^1.1 || ^2.0 || ^3.0
symfony/config Version ^5.4 || ^6.0
symfony/contracts Version ^2.5 || ^3.0
symfony/dependency-injection Version ^5.4 || ^6.0
symfony/http-kernel Version ^5.4 || ^6.0
symfony/http-foundation Version ^5.4 || ^6.0
symfony/serializer Version ^5.4 || ^6.0
symfony/validator Version ^5.4 || ^6.0
The package violines/rest-bundle contains the following files
Loading the files please wait ....