PHPackages                             boxed-code/laravel-eloquent-meta - 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. boxed-code/laravel-eloquent-meta

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

boxed-code/laravel-eloquent-meta
================================

Meta data framework for Laravel's eloquent models.

1.0.1(10y ago)2581MITPHP

Since Jan 12Pushed 10y ago2 watchersCompare

[ Source](https://github.com/boxed-code/laravel-eloquent-meta)[ Packagist](https://packagist.org/packages/boxed-code/laravel-eloquent-meta)[ RSS](/packages/boxed-code-laravel-eloquent-meta/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

\#Eloquent Meta#

Eloquent meta provides an easy way to implement schemaless meta data stores for `Eloquent` models.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7e57eece45c026314401bb63da643057465f22bd046fc13169f453866a32c412/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f786564636f64652f6c61726176656c2d656c6f7175656e742d6d6574612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/boxedcode/laravel-eloquent-meta/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8dac9d8146343625bfbe93ee47c2e03a765e87502b689dc22434187b2d8fcbfa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f786564636f64652f6c61726176656c2d656c6f7175656e742d6d6574612f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/boxedcode/laravel-eloquent-meta/?branch=master)[![Build Status](https://camo.githubusercontent.com/f0a68380d315491a3f5eb853122361990188968986fd0f768046dcb8764c239a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f786564636f64652f6c61726176656c2d656c6f7175656e742d6d6574612f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/boxedcode/laravel-eloquent-meta/build-status/master)

\##Installation##

Add the package via composer:

```
composer require boxed-code/laravel-eloquent-meta
```

then add the following line to the `providers` key within your `config/app.php` file:

```
BoxedCode\Eloquent\Meta\MetaServiceProvider::class
```

You can then create a meta table migration using the artisan command:

```
php artisan make:meta-migration
```

and then call migrate

```
php artisan migrate
```

\##Basic Usage##

There are two main methods of enabling a meta store on your models:

\###Using the Metable trait### The `Metable` trait adds the basic meta store relation to your model so that it can be accessed like:

```
class MyModel extends Model
{
    use Metable;
}

...

$model = new MyModel();

// Access via magic accessors on the meta collection.

$model->meta->foo = 'bar';

echo $model->meta->foo; // prints 'bar'

// Access via the collection

$item = $model->meta->whereKey('foo')->first();

echo $item; // prints 'bar'
```

\###Using the FluentMeta trait### The `FluentMeta` trait enables meta access on the model directly like:

```
use BoxedCode\Eloquent\Meta\FluentMeta;
use Illuminate\Database\Eloquent\Model;

class MyModel extends Model
{
    use FluentMeta;
}

...

$model = new MyModel();

// Access via magic accessors on the model.

$model->foo = 'bar';

echo $model->foo; // prints 'bar'

// Access via the collection

$item = $model->meta->whereKey('foo')->first();

echo $item; // prints 'bar'
```

\##License## See the attached license file.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~35 days

Total

2

Last Release

3736d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7480518d69b3d7e1f985e9f8b7f5aaf43f4cdeac87bda4eeb832c75f21f0d27?d=identicon)[olsgreen](/maintainers/olsgreen)

---

Top Contributors

[![olsgreen](https://avatars.githubusercontent.com/u/1324164?v=4)](https://github.com/olsgreen "olsgreen (44 commits)")[![alexshepherd-hydrant](https://avatars.githubusercontent.com/u/13217583?v=4)](https://github.com/alexshepherd-hydrant "alexshepherd-hydrant (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

laraveldatamodeleloquentmetadatameta

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/boxed-code-laravel-eloquent-meta/health.svg)

```
[![Health](https://phpackages.com/badges/boxed-code-laravel-eloquent-meta/health.svg)](https://phpackages.com/packages/boxed-code-laravel-eloquent-meta)
```

###  Alternatives

[kodeine/laravel-meta

Fluent Meta Data for Eloquent Models, as if it is a property on your model.

426756.0k9](/packages/kodeine-laravel-meta)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591444.8k2](/packages/spiritix-lada-cache)[pdphilip/elasticsearch

An Elasticsearch implementation of Laravel's Eloquent ORM

145360.2k4](/packages/pdphilip-elasticsearch)

PHPackages © 2026

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