screeper-project / jsonapi-bundle
JsonApi support in Symfony 2
Installs: 15
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
- doctrine/doctrine-bundle: *
- screeper-project/server-bundle: dev-master
- symfony/framework-bundle: >=2.1
- twig/twig: *
This package is not auto-updated.
Last update: 2024-11-05 07:44:02 UTC
README
DEVELOPMENT IN PROGRESS
The JsonApi bundle add support of JsonApi (alecgorge's plugin) in symfony 2.
The github of JsonApi : https://github.com/alecgorge/jsonapi
The webpage of JsonApi : Not available
Installation
Add :
"graille-labs/screeper-jsonapi-bundle": "dev-master"
in your composer.json
Configuration
You must configure servers in the ServerBundle :
ServerBundle Page : https://github.com/graille/ServerBundle
Usage
For use, you must call the service :
$api = $this->container->get('screeper.json_api.services.api')->getApi("servername");
After that, you can use the api normally. If "servername" is empty, the default server will be used (For more informations, go to the ServerBundle page).