bigz / halapi-bundle
Integration of Halapi into Symfony.
Installs: 260
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >5.5
- bigz/halapi: ^0.2
- jms/serializer-bundle: ^2.4
- league/fractal: ^0.17.0
- pagerfanta/pagerfanta: ^1.0
- symfony/framework-bundle: ~2.7 || ~4.0
- symfony/psr-http-message-bridge: ^1.0
- zendframework/zend-diactoros: ^1.8
Requires (Dev)
- phpunit/phpunit: ~5.7
- symfony/expression-language: ~2.4 || ~3.0
- twig/twig: ~1.12
README
Symfony bundle for Bigz/Halapi
Install
composer require Bigz/halapibundle
Register it in your AppKernel
new Bigz\HalapiBundle\BigzHalapiBundle(),
Usage
It will hook in JmsSerializer and add HATEOAS data before serialization. Experimental If the header Content-Type: application/vnd.api+json is specified, it will transform the output to JSONApi
Further Documentation
Have a look at http://github.com/Bigz/Halapi
TODO
- (MUST) Provide configuration options to use the implementation of your choiche (ORM, ODM, ...)