amani64/api

Resuful response package for laravel with Fractal transformer

Maintainers

Details

github.com/amani64/api

Source

Issues

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/amani64/api

1.8.2 2019-06-02 04:57 UTC

This package is auto-updated.

Last update: 2025-09-29 02:49:34 UTC


README

This package provide you restful json response.

Documentation

Create Factory class: $factory = app(Factory::class);

Set custom serializer:

$factory->transformer()->getAdapter()->setSerializer($serializer);

In your Controller:

return $factory->collection($collection, MyTransformer::class, ['identifier'=> 'myData'])

License

This package is licensed under the BSD 3-Clause license.