PHPackages                             awobaz/eloquent-auto-append - 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. awobaz/eloquent-auto-append

ActiveLibrary

awobaz/eloquent-auto-append
===========================

Automatically append accessors to model serialization

1.0.10(6mo ago)14824[1 PRs](https://github.com/topclaudy/eloquent-auto-append/pulls)MITPHPPHP &gt;=7.1

Since Dec 14Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/topclaudy/eloquent-auto-append)[ Packagist](https://packagist.org/packages/awobaz/eloquent-auto-append)[ RSS](/packages/awobaz-eloquent-auto-append/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (7)Versions (13)Used By (0)

Eloquent Auto Append
====================

[](#eloquent-auto-append)

**Eloquent Auto Append** automatically appends your [accessors](https://laravel.com/docs/5.7/eloquent-mutators#accessors-and-mutators) to model serialization without having you to explicitly specify them in the `$appends` array.

#### Related discussions:

[](#related-discussions)

- [How to always append attributes to Laravel Eloquent model?](https://stackoverflow.com/questions/35701538/how-to-always-append-attributes-to-laravel-eloquent-model)
- [Why is my Laravel Eloquent accessor not showing up in the response?](https://stackoverflow.com/questions/47872233/why-is-my-laravel-eloquent-accessor-not-showing-up-in-the-response)

Installation
------------

[](#installation)

The recommended way to install **Eloquent Auto Append** is through [Composer](http://getcomposer.org/)

```
$ composer require awobaz/eloquent-auto-append
```

> **Note:** **Eloquent Auto Append** requires Laravel 5.4+.

Usage
-----

[](#usage)

### Using the `Awobaz\AutoAppend\Database\Eloquent\Model` class

[](#using-the-awobazautoappenddatabaseeloquentmodel-class)

Simply make your model class derive from the `Awobaz\AutoAppend\Database\Eloquent\Model` base class. The `Awobaz\AutoAppend\Database\Eloquent\Model` extends the `Eloquent` base class without changing its core functionality.

### Using the `Awobaz\AutoAppend\AutoAppend` trait

[](#using-the-awobazautoappendautoappend-trait)

If for some reasons you can't derive your models from `Awobaz\AutoAppend\Database\Eloquent\Model`, you may take advantage of the `Awobaz\AutoAppend\AutoAppend` trait. Simply use the trait in your models.

### Disable Auto Append

[](#disable-auto-append)

You may disable **Auto Append** on a model by setting it's property `$autoAppend` to `false`

```
protected $autoAppend = false;
```

Contributing
------------

[](#contributing)

Please read [CONTRIBUTING.md](https://github.com/topclaudy/eloquent-auto-append/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/topclaudy/eloquent-auto-append/tags).

Unit Tests
----------

[](#unit-tests)

In order to run the test suite, install the development dependencies:

```
$ composer install --dev
```

Then, run the following command:

```
$ vendor/bin/phpunit
```

Authors
-------

[](#authors)

- [Claudin J. Daniel](https://github.com/topclaudy) - *Initial work*

Sponsored by
------------

[](#sponsored-by)

- [Awobaz](https://awobaz.com) - Web/Mobile agency based in Montreal, Canada

License
-------

[](#license)

**Eloquent Auto Append** is licensed under the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance66

Regular maintenance activity

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~250 days

Recently: every ~320 days

Total

11

Last Release

204d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.4

1.0.3PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/919599418cdd0c949e506c8bd582192df0a4a0c354e85c65a6392f97c83e3e32?d=identicon)[topclaudy](/maintainers/topclaudy)

---

Top Contributors

[![topclaudy](https://avatars.githubusercontent.com/u/1437237?v=4)](https://github.com/topclaudy "topclaudy (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

laravellaravel accessorslaravel appends

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/awobaz-eloquent-auto-append/health.svg)

```
[![Health](https://phpackages.com/badges/awobaz-eloquent-auto-append/health.svg)](https://phpackages.com/packages/awobaz-eloquent-auto-append)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M686](/packages/barryvdh-laravel-ide-helper)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)

PHPackages © 2026

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