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(7y ago)039MITPHPPHP ^7.1

Since Jan 8Pushed 6y 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 1w 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 30% 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

2598d 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.9M106](/packages/mongodb-laravel-mongodb)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k35.7M51](/packages/kirschbaum-development-eloquent-power-joins)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M353](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.3M27](/packages/yajra-laravel-oci8)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)

PHPackages © 2026

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