• About
  • Apps
    • Testan
06 Jul 2019
cat: API, Laravel, PHP
3 Comments

Lumen API Tutorial – Response transformers with PHP League’s Fractal

In this tutorial, we will install PHP League's Fractal and write helper methods to transform models into arrays which can be turned into JSON. Fractal also formats the array using JSON API standard https://jsonapi.org. It can also load related objects in one request. In this project, we will use Lumen as our code base.
Read More

Recent Posts

  • Laravel 8 Clean Architecture Example
  • Laravel Factory Design Pattern Example
  • Laravel API and Angular Client Tutorial – Part 6 Client Form File Upload
  • Laravel API and Angular Client Tutorial – Part 5 API File Upload
  • Laravel API and Angular Client Tutorial – Part 4 Client Get Photos and Videos

Recent Comments

  • Nick Alcala on Laravel OAuth with Passport and Dingo API
  • Neo on Laravel OAuth with Passport and Dingo API
  • Nick Alcala on Express JS OAuth 2 Server using oauth2-server package
  • James on Express JS OAuth 2 Server using oauth2-server package
  • Nick Alcala on Laravel Factory Design Pattern Example

Archives

  • February 2021
  • April 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • March 2019
  • December 2018
  • June 2018
  • March 2018
  • February 2018
  • November 2017

Categories

  • Angular 2+
  • API
  • Express
  • Laravel
  • Node
  • PHP

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright (c) Nice Programmer 2025 | Privacy Policy | Contact: support@niceprogrammer.com