PHPackages                             notate/notate - 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. notate/notate

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

notate/notate
=============

Put your JSON data to work in Eloquent.

v0.0.7(6y ago)039MITPHPPHP ^7.1

Since Jan 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mink/notate)[ Packagist](https://packagist.org/packages/notate/notate)[ Docs](https://github.com/mink/notate)[ RSS](/packages/notate-notate/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

Notate
======

[](#notate)

Notate is a tool for the Laravel Eloquent ORM that allows you to define `HasOne`, `HasMany` and `BelongsTo` relationships using properties defined in JSON on a foreign key.

### Installation

[](#installation)

Run the following command in your terminal in the directory of your Laravel project.

```
composer require notate/notate

```

### Usage

[](#usage)

Add the `Notate\Notate` trait to your Eloquent models, and you will be able to reference JSON columns on both ends when creating relationships.

#### Relationships

[](#relationships)

```
use Illuminate\Database\Eloquent\Model;
use Notate\Notate;
use Notate\Relations\{HasOne, HasMany, BelongsTo};

class User extends Model
{
    use Notate;

    public function guild(): HasOne
    {
        return $this->hasOne(Guild::class, 'id', 'stats->guild_id');
    }

    public function items(): HasMany
    {
        return $this->hasMany(Item::class, 'data->id', 'nested->some->property');
    }

    public function role(): BelongsTo
    {
        return $this->belongsTo(Role::class, 'name', 'stats->role->name');
    }
}
```

```
$user = User::find(1);

// user->nested->some->property == item->data->id
echo $user->items->first()->data->id;

// can use the query builder as usual
$equippedItems = $user->items()->where('equipped',0)->get();

// eager loading support
$users = User::with(['items','guild'])->get();
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~89 days

Recently: every ~94 days

Total

7

Last Release

2553d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13795700?v=4)[Zac Olden](/maintainers/mink)[@mink](https://github.com/mink)

---

Top Contributors

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

---

Tags

jsonlaraveldatabaseeloquentcollectionrelationshipnotate

### Embed Badge

![Health badge](/badges/notate-notate/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M87](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[spiritix/lada-cache

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

591452.8k2](/packages/spiritix-lada-cache)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M16](/packages/reedware-laravel-relation-joins)[ntanduy/cloudflare-d1-database

Cloudflare D1 database driver for Laravel — full Eloquent &amp; Query Builder support.

276.8k](/packages/ntanduy-cloudflare-d1-database)

PHPackages © 2026

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