PHPackages                             appstract/laravel-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. appstract/laravel-meta

ActiveLibrary

appstract/laravel-meta
======================

Model meta

2.0.0(6y ago)13074.5k↓40.3%12[1 PRs](https://github.com/appstract/laravel-meta/pulls)MITPHPPHP &gt;=5.6CI failing

Since May 4Pushed 2y ago7 watchersCompare

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

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

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

[](#laravel-meta)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4f1bc1303d361405da5d655a410c1c4175df9525e11dda09baebe072e297bb52/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170707374726163742f6c61726176656c2d6d6574612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/appstract/laravel-meta)[![Total Downloads](https://camo.githubusercontent.com/523dc1f39eae148a44aaa4c09f00d161362df263e6b3f17152daec8425d6902c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6170707374726163742f6c61726176656c2d6d6574612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/appstract/laravel-meta)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/3797491810401dd4a1e004fa7bd56d305fe25c2dcc181f0bffa56a70bbab0dec/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6170707374726163742f6c61726176656c2d6d6574612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/appstract/laravel-meta)

Metadata for your Eloquent model

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

[](#installation)

You can install the package via composer:

```
composer require appstract/laravel-meta
```

### Publish, migrate

[](#publish-migrate)

By running `php artisan vendor:publish --provider="Appstract\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 Appstract\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
```

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

[](#contributing)

Contributions are welcome, [thanks to y'all](https://github.com/appstract/laravel-meta/graphs/contributors) :)

About Appstract
---------------

[](#about-appstract)

Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on [Medium](https://medium.com/appstract). You can [follow us on Twitter](https://twitter.com/appstractnl), [buy us a beer](https://www.paypal.me/appstract/10) or [support us on Patreon](https://www.patreon.com/appstract).

License
-------

[](#license)

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

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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 ~72 days

Recently: every ~185 days

Total

15

Last Release

2295d ago

Major Versions

0.2.0 → 1.0.02018-01-22

1.3.0 → 2.0.02020-02-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1470623?v=4)[Gijs Jorissen](/maintainers/gizburdt)[@gizburdt](https://github.com/gizburdt)

![](https://avatars.githubusercontent.com/u/3015449?v=4)[Olav van Schie](/maintainers/ovanschie)[@ovanschie](https://github.com/ovanschie)

---

Top Contributors

[![gizburdt](https://avatars.githubusercontent.com/u/1470623?v=4)](https://github.com/gizburdt "gizburdt (21 commits)")[![MrWeb](https://avatars.githubusercontent.com/u/4120466?v=4)](https://github.com/MrWeb "MrWeb (7 commits)")[![markdieselcore](https://avatars.githubusercontent.com/u/16547382?v=4)](https://github.com/markdieselcore "markdieselcore (4 commits)")[![teuunn](https://avatars.githubusercontent.com/u/17406280?v=4)](https://github.com/teuunn "teuunn (3 commits)")[![ovanschie](https://avatars.githubusercontent.com/u/3015449?v=4)](https://github.com/ovanschie "ovanschie (2 commits)")[![fico7489](https://avatars.githubusercontent.com/u/4559663?v=4)](https://github.com/fico7489 "fico7489 (1 commits)")[![m1guelpf](https://avatars.githubusercontent.com/u/23558090?v=4)](https://github.com/m1guelpf "m1guelpf (1 commits)")

---

Tags

laravellaravel-metalaravel-packagemetadataphpappstractlaravel meta

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[appstract/laravel-opcache

PHP OPcache Artisan commands for Laravel.

1.4k4.9M7](/packages/appstract-laravel-opcache)[appstract/laravel-blade-directives

Handy Blade directives

8501.2M9](/packages/appstract-laravel-blade-directives)[appstract/laravel-options

Global options loaded from the database

730443.2k4](/packages/appstract-laravel-options)[appstract/laravel-stock

Keep stock for Eloquent models

29038.3k](/packages/appstract-laravel-stock)[appstract/laravel-multisite

Multisite setup for Laravel

21411.2k](/packages/appstract-laravel-multisite)[f9webltd/laravel-meta

Render meta tags in your Laravel application

4049.5k](/packages/f9webltd-laravel-meta)

PHPackages © 2026

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