| Package Data | |
|---|---|
| Maintainer Username: | nilportugues | 
| Maintainer Contact: | contact@nilportugues.com (Nil Portugués Calderó) | 
| Package Create Date: | 2015-11-21 | 
| Package Last Update: | 2017-03-30 | 
| Home Page: | http://nilportugues.com | 
| Language: | PHP | 
| License: | MIT | 
| Last Refreshed: | 2025-10-26 03:13:52 | 
| Package Statistics | |
|---|---|
| Total Downloads: | 36,299 | 
| Monthly Downloads: | 0 | 
| Daily Downloads: | 0 | 
| Total Stars: | 5 | 
| Total Watchers: | 2 | 
| Total Forks: | 7 | 
| Total Open Issues: | 3 | 
This is a driver for the Serializer library caring of Eloquent ORM model serialization.
Due to the popularity of Eloquent, specially in Laravel apps, a driver has been develop to unite all Eloquent serialization edge-cases for Serializer in a single library.
Use Composer to install the package:
$ composer require nilportugues/serializer-eloquent
This will return an array following the Serializer format.
use NilPortugues\Serializer\Drivers\Eloquent\EloquentDriver;
$serialized = EloquentDriver::serialize($value);
Code all examples provided in the Eloquent documentation for relationships as tests:
Contributions to the package are always welcome!
Get in touch with me using one of the following means:
The code base is licensed under the MIT license.