PHPackages                             emresari89/laravel-model-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. emresari89/laravel-model-meta

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

emresari89/laravel-model-meta
=============================

Laravel Model Meta Options

v0.0.1(5y ago)095MITPHPPHP &gt;=7.4

Since Mar 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/emresari89/laravel-model-meta)[ Packagist](https://packagist.org/packages/emresari89/laravel-model-meta)[ Docs](https://github.com/emresari89/laravel-model-meta)[ RSS](/packages/emresari89-laravel-model-meta/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Meta
============

[](#laravel-meta)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f71b87499324a33367a844583b6d207daf5ede9e9bb526545fa95e7c01e9f5a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170707374726163742f6c61726176656c2d6d6f64656c2d6d6574612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/emresari89/laravel-model-meta)[![Total Downloads](https://camo.githubusercontent.com/5849a66ddbf81428efa9af6c922f26612b28214e339e7cc557c36f3d14ceeb8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6170707374726163742f6c61726176656c2d6d6f64656c2d6d6574612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/emresari89/laravel-model-meta)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9ca589a5acd1103acf8ce30d21ec43f11cef36b233d0e8bae660ce1953f04ca6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6170707374726163742f6c61726176656c2d6d6f64656c2d6d6574612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/emresari89/laravel-model-meta)

Metadata for your Eloquent model

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

[](#installation)

You can install the package via composer:

```
composer require emresari89/laravel-model-meta
```

### Publish, migrate

[](#publish-migrate)

By running `php artisan vendor:publish --provider="Emresari\Meta\MetaServiceProvider"` in your project all files for this package will be published. For this package, it's only a migration. Run `php artisan migrate` to migrate the table. There will now be a table named `metas` in your database.

Usage
-----

[](#usage)

You can easily add Meta to an Eloquent model. Just add this to your model:

```
use Emresari\Meta\Metable;

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

Then you can get, add, update and delete meta to the model.

```
$book = Book::find(1);

$book->addMeta('someKey', 'someValue');

$book->getMeta('someKey');

$book->getMetaValue('someKey');

$book->hasMeta('someKey');

$book->updateMeta('someKey', 'anotherValue');

$book->addOrUpdateMeta('someKey', 'someValue');

$book->deleteMeta('someKey');

$book->getAllMeta();

$book->deleteAllMeta();
```

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1944d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29493496?v=4)[Emre Sarıoğlu](/maintainers/emresari89)[@emresari89](https://github.com/emresari89)

---

Top Contributors

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

---

Tags

laravel metaemresari89

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/emresari89-laravel-model-meta/health.svg)

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

###  Alternatives

[appstract/laravel-meta

Model meta

13089.1k](/packages/appstract-laravel-meta)

PHPackages © 2026

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