2017 © Pedro Peláez
 

library silex-fractal-service-provider

A Silex Service Provider for Fractal

image

madd/silex-fractal-service-provider

A Silex Service Provider for Fractal

  • Friday, December 20, 2013
  • by marcaddeo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FractalServiceProvider

Build Status Coverage Status Latest Stable Version Total Downloads, (*1)

Fractal Service Provider for Silex, (*2)

Install

Via Composer, (*3)

``` json { "require": { "madd/silex-fractal-service-provider": "dev-master" } }, (*4)



## Usage ``` php use League\Fractal\Collection; /** * You can set the scope identifier that Fractal uses to get its embeds here. * If not set here, it will default to 'embed' */ $app->register(new Madd\Silex\Provider\Fractal\FractalServiceProvider, array( 'fractal.scope_identifier' => 'embed' )); $resource = new Collection($model, new ModelTransformer); $data = $app['fractal']->createData($resource); print_r($data->toArray());

TODO

Note: The build is only passing because I have a test that only tests if true is true.. I still have to implement tests., (*5)

  • [ ] Unit test to fuck

Testing

bash $ phpunit, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

20/12 2013

dev-master

9999999-dev https://github.com/marcaddeo/silex-fractal-service-provider

A Silex Service Provider for Fractal

  Sources   Download

MIT

The Development Requires

service silex provider fractal