Download the PHP package rroek/rest-component-bundle without Composer
On this page you can find all versions of the php package rroek/rest-component-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rroek/rest-component-bundle
More information about rroek/rest-component-bundle
Files in rroek/rest-component-bundle
Package rest-component-bundle
Short Description BlackBox to easy generate RESTful HATEOAS API
License proprietary
Informations about the package rest-component-bundle
RestComponentBundle
Features
- Give you ability to to easier & faster make great RESTful HATEOAS Apis
Table of Contents
[TOCM]
[TOC]
Introduction
This bundle is initially forked from Sulu CMS (a CMF based on Symfony CMF). It give you ability to to easier & faster make great RESTful HATEOAS Apis.
It require friendsofsymfony/rest-bundle & willdurand/hateoas-bundle. And is placed on top of this bundles.
Advantages
Easier. Faster. Make great RESTful HATEOAS APIs !
Use
Activate bundle
To use it, simply composer require rroek/rest-component-bundle
and enable it :
in AppKernel.php :
Make your Controller
For this example, we will take "MyPersonalEntity" class wich is an Doctrine Entity in our Symfony Project.
Our Entity will have an id, a label, a relation with another entity & getters/setters for it.
So let's see interresting things :
I want to make my Controller. it job is to give access to my entity & make is CRUD callable. We will use nelmio/NelmioApiDocBundle to generate our apiDoc. So lets create our Controller :
In :
MyBundle
Controller
RestController
MyEntityRestController.php
Entity
MyPersonalEntity.php
...
Declare our routes :
And its all ! Your entity Full CRUD APi is created, it have allready CRUD methods and respect RESTful HATEOAS recommendations :
Enjoy !
All versions of rest-component-bundle with dependencies
doctrine/doctrine-bundle Version ^1.6
doctrine/orm Version ^2.5
friendsofsymfony/rest-bundle Version ^2.3
willdurand/hateoas Version ^2.10
willdurand/hateoas-bundle Version ^1.2
goodby/csv Version ^1.3
jms/serializer-bundle Version ^2.1
symfony/config Version ~3.2
symfony/console Version ~3.2
symfony/dependency-injection Version ~3.2
symfony/framework-bundle Version ~3.2
symfony/monolog-bundle Version ^3.1
symfony/yaml Version ~3.2