Download the PHP package liyu/dingo-serializer-switch without Composer
On this page you can find all versions of the php package liyu/dingo-serializer-switch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download liyu/dingo-serializer-switch
More information about liyu/dingo-serializer-switch
Files in liyu/dingo-serializer-switch
Download liyu/dingo-serializer-switch
More information about liyu/dingo-serializer-switch
Files in liyu/dingo-serializer-switch
Vendor liyu
Package dingo-serializer-switch
Short Description A middleware to switch dingo serializer
License MIT
Package dingo-serializer-switch
Short Description A middleware to switch dingo serializer
License MIT
Please rate this library. Is it a good library?
Informations about the package dingo-serializer-switch
Dingo Serializer Switch
This is a middleware for dingo/api to switch serializer
If a resource's relationship is null, we can return $this->null()
in a transformer. But default serializer return [], I think null is better.
Also when pagination has no links, default is [], I wish to return null. So I write two serializer to fix this.
If you want to use default serializer just use default_array
or default_data_array
.
Installation
Laravel
composer require liyu/dingo-serializer-switch
Lumen
bootstrap/app.php
Usage
default key is data_array, so v2 v3 is same.
License
All versions of dingo-serializer-switch with dependencies
PHP Build Version
Package Version
The package liyu/dingo-serializer-switch contains the following files
Loading the files please wait ....