PHPackages                             nuwave/ember-eloquent - 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. nuwave/ember-eloquent

ActiveLibrary

nuwave/ember-eloquent
=====================

Laravel package to translate api responses into ember-data readable formats.

1.3.2(10y ago)3612MITPHP

Since Apr 2Pushed 10y ago2 watchersCompare

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

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

Ember-Eloquent
==============

[](#ember-eloquent)

### Introduction

[](#introduction)

I have been working quite a bit with Ember recently and I wanted to create Ember Data formatted responses including sideloading. This proeject utilizes Fractal's JsonApiSerializer and tweaks it a bit to create json responses that are consumable by ember-data.

**This is still a work in progress, so please use with caution**

### Installation

[](#installation)

Install the composer package

```
composer require nuwave/ember-eloquent
```

Add the service provider to you app.php file

```
'NuWave\Serializers\SerializerServiceProvider',
```

Publish the config file

```
php artisan vendor:publish
```

Create your model transformers (Fractal)

[Fractal Transformer Guide](http://fractal.thephpleague.com/transformers/)

Edit the config file with your application namespace (optional: you can also add a suffix if your naming convension utilizes it)

```
// config/ember.php

return [
    /*
    |---------------------------------------------------------------------
    | Transformer Namespace
    |---------------------------------------------------------------------
    |
    | Set the default namespace for your transformer
    |
    */
    'namespace' => 'MyApp\Transformers',

    /*
    |---------------------------------------------------------------------
    | Transformer Suffix
    |---------------------------------------------------------------------
    |
    | Set the suffix for your transformer naming convention.
    |
    | Default value is null
    */
    'suffix' => null
];
```

Add EmberTrait to your controllers (or your base Controller). This will allow you to utilize the emberResponse method which takes your Model/Collection along with the model name and transforms it into an ember-data formatted response.

```
class UserController extends Controller {

  use EmberTrait;

  public function index()
  {
    $users = User::all();

    // or

    $users = User::paginate(20); // meta data will be included in response

    return $this->emberResponse($users, 'User');
  }

  // ...

  public function show($id)
  {
    $user = User::find($id);

    return $this->emberResponse($user, 'User');
  }
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~22 days

Total

6

Last Release

3953d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1976169?v=4)[Christopher Moore](/maintainers/chrissm79)[@chrissm79](https://github.com/chrissm79)

---

Top Contributors

[![chrissm79](https://avatars.githubusercontent.com/u/1976169?v=4)](https://github.com/chrissm79 "chrissm79 (23 commits)")

### Embed Badge

![Health badge](/badges/nuwave-ember-eloquent/health.svg)

```
[![Health](https://phpackages.com/badges/nuwave-ember-eloquent/health.svg)](https://phpackages.com/packages/nuwave-ember-eloquent)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k49.4M479](/packages/laravel-scout)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8703.0M17](/packages/yajra-laravel-oci8)[mehdi-fathi/eloquent-filter

Eloquent Filter adds custom filters automatically to your Eloquent Models in Laravel.It's easy to use and fully dynamic, just with sending the Query Strings to it.

450191.6k1](/packages/mehdi-fathi-eloquent-filter)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
