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. Transforming right from a Laravel collection is particularly useful for Eloquent results. You can transform directly from a Laravel collection as well. There's also a very short syntax available to quickly transform data. Lovers of facades will be glad to know that a facade is provided. You can add methods to the Fractal class using Laravel's Macroable trait. Imagine you want to add some stats to the metadata of your request, you can do so without cluttering your code. You can run the make:transformer command to quickly generate a dummy transformer. By default it will be stored in the app\Transformers directory.

Features

  • Using Fractal data can be transformed
  • For Laravel and Lumen
  • The laravel-fractal package makes the process easier
  • The package has support for Fractal's serializers
  • All available options are explained in the readme
  • Transforming right from a Laravel collection is particularly useful

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Laravel Fractal

Laravel Fractal Web Site

You Might Also Like
ManageEngine Endpoint Central for IT Professionals Icon
ManageEngine Endpoint Central for IT Professionals

A one-stop Unified Endpoint Management (UEM) solution

ManageEngine's Endpoint Central is a Unified Endpoint Management Solution, that takes care of enterprise mobility management (including all features of mobile application management and mobile device management), as well as client management for a diversified range of endpoints - mobile devices, laptops, computers, tablets, server machines etc. With ManageEngine Endpoint Central, users can automate their regular desktop management routines like distributing software, installing patches, managing IT assets, imaging and deploying OS, and more.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Laravel Fractal!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Software Development Software

Registered

2022-03-22