PHPackages                             theofidry/eloquent-serializer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. theofidry/eloquent-serializer

AbandonedArchivedLaravel-provider[Database &amp; ORM](/categories/database)

theofidry/eloquent-serializer
=============================

Symfony Serializer bridge for the Eloquent ORM.

v1.1.0(8y ago)123.6k↓100%2MITPHPPHP ^7.1

Since Jul 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/theofidry/EloquentSerializer)[ Packagist](https://packagist.org/packages/theofidry/eloquent-serializer)[ RSS](/packages/theofidry-eloquent-serializer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

EloquentSerializer
==================

[](#eloquentserializer)

[![Package version](https://camo.githubusercontent.com/c2e586de7a6616dc2d7d023275ea0f8ab7c69545e7619219d05032453a3e1135/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468656f66696472792f656c6f7175656e742d73657269616c697a65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/theofidry/eloquent-serializer)[![Build Status](https://camo.githubusercontent.com/c5f561dfe8b02ea4ea6c00cfe6ee303db1da99098c048568e0269b084f5a6845/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468656f66696472792f456c6f7175656e7453657269616c697a65722e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.org/theofidry/EloquentSerializer?branch=master)[![License](https://camo.githubusercontent.com/10e85a5778fe7601504a17ecd18dfa7097f473186b0f947bc10db2d3e4f530e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7265642e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Package to allow [Symfony Serializer](http://symfony.com/doc/current/components/serializer.html) to work on [Eloquent models](https://laravel.com/docs/5.4/eloquent#eloquent-model-conventions).

Table of Contents
-----------------

[](#table-of-contents)

1. [Install](#install)
    1. [Laravel](#laravel-550)
    2. [Symfony](#symfony-34--40)
2. [Usage](#usage)
3. [Contributing](#contributing)

Install
-------

[](#install)

You can use [Composer](https://getcomposer.org/) to install the bundle to your project:

```
composer require theofidry/eloquent-serializer
```

### Laravel (~5.5.0)

[](#laravel-550)

Nothing to do, the provider is automatically discovered :)

### Symfony (^3.4 || ^4.0)

[](#symfony-34--40)

Enable the bundle by updating your `app/AppKernel.php` file to enable the bundle:

```
