{"repo":"spatie/laravel-fractal","free":true,"listed":false,"github":"https://github.com/spatie/laravel-fractal","clone":"git clone https://github.com/spatie/laravel-fractal.git","description":"An easy to use Fractal wrapper built for Laravel and Lumen applications","language":"PHP","stars":1909,"topics":["laravel","fractal","api","php","transform-data","lumen"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"An easy to use Fractal wrapper built for Laravel and Lumen applications The package provides a nice and easy wrapper around Fractal for use in your Laravel applications. If you don't know what Fractal does, take a peek at their intro. Shortly said, Fractal is very useful to transform data before using it in an API. Using Fractal data can be transformed like this: This package makes that process a tad easier: Lovers of facades will be glad to know that a facade is provided: There's also a very short syntax available to quickly transform data: You can transform directly from a Laravel collection as well: Transforming right from a Laravel collection is particularly useful for Eloquent results: Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation in Laravel 5.5 and up You can pull in the package via composer: The package will automatically register itself. If you want to change the default serializer, the default paginator, or the default fractal class Spatie\\Fractal\\Fractal you must publish the config file: If you're upgrading t","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-fractal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}