New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

nilportugues/serializer-eloquent

Eloquent Driver for NilPortugues Serializer outputting valid API responses in JSON, JSON API and HAL+JSON API formats.
36,764 5

Larablocks Analysis

nilportugues/serializer-eloquent works with Laravel 5 (latest release 1.0.12, Mar 30, 2017), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Mar 30, 2017)
  • 67 downloads a month (needs 10,000)
  • 5 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Mar 30, 2017.
  • No releases in the last 12 months.
  • First released: Nov 21, 2015.
  • Monthly downloads: 67, up 219% from six months ago.
  • 3 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require nilportugues/serializer-eloquent
Latest Version:1.0.12
PHP:>=5.5.0
Laravel:5
License:MIT
Last Updated:Mar 30, 2017
Links: GitHub  ·  Packagist
Maintainer: nilportugues

Serializer Driver for Eloquent ORM Models

Build Status Scrutinizer Code Quality SensioLabsInsight Latest Stable Version Total Downloads License Donate

What?

This is a driver for the Serializer library caring of Eloquent ORM model serialization.

Why?

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.

Installation

Use Composer to install the package:

$ composer require nilportugues/serializer-eloquent

Usage

This will return an array following the Serializer format.

use NilPortugues\Serializer\Drivers\Eloquent\EloquentDriver;

$serialized = EloquentDriver::serialize($value);

Todo

Code all examples provided in the Eloquent documentation for relationships as tests:

  • One To One
  • One To Many
  • Has Many Through
  • Polymorphic Relations
  • Many To Many
  • Many To Many Polymorphic Relations

Contribute

Contributions to the package are always welcome!

Support

Get in touch with me using one of the following means:

Authors

License

The code base is licensed under the MIT license.

Alternatives to nilportugues/serializer-eloquent

cloudcreativity/json-api-testing

PHPUnit test helpers to check JSON API documents.

1,997,360 14
flugger/laravel-responder

A Laravel Fractal package for building API responses, giving you the power of Fr...

1,689,056 886
sfelix-martins/json-exception-handler

Adds more power to Laravel Exceptions Handler to treat json responses

70,992 17
viodev/laravel-replier

Laravel package for making JSON APIs.

17,066 1
mahmoud-almalah/laravel-api-helpers

Standardized API responses for Laravel applications.

1,709 1

Version History

Version Released PHP Laravel License
1.0.12 >=5.5.0 ^5.1 MIT
1.0.11 >=5.5.0 ^5.1 MIT
1.0.10 >=5.5.0 ^5.1 MIT
1.0.9 >=5.5.0 ^5.1 MIT
1.0.8 >=5.5.0 ^5.1 MIT