PHPackages                             mistery23/eloquent-object-relations - 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. mistery23/eloquent-object-relations

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

mistery23/eloquent-object-relations
===================================

laravel object relations

v1.2.6(6y ago)02002MITPHPPHP ^7.2

Since Dec 3Pushed 6y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (16)Used By (2)

Eloquent object relations
=========================

[](#eloquent-object-relations)

Install
-------

[](#install)

```
composer require mistery23/eloquent-object-relations

```

Using
-----

[](#using)

If you use value object wrap in `id` primary key, or foreign key (your value object by `id` need to implement magic method `__toSting()`), or primary key is string.

Work with relations: BelongsTo, BelongsToMany, HasOne, HasMany.

```
use Mistery23\ObjectRelations\HasObjectRelations;

class User extends Model
{
    use HasObjectRelations;
    ....
}

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 66.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 ~1 days

Total

15

Last Release

2381d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/137802550?v=4)[mistery23](/maintainers/mistery23)[@Mistery23](https://github.com/Mistery23)

---

Top Contributors

[![alexandrbarabolia](https://avatars.githubusercontent.com/u/17147023?v=4)](https://github.com/alexandrbarabolia "alexandrbarabolia (16 commits)")[![SviatoslavBereznitskyi](https://avatars.githubusercontent.com/u/37864596?v=4)](https://github.com/SviatoslavBereznitskyi "SviatoslavBereznitskyi (8 commits)")

---

Tags

laravelvomodeleloquentvalue objectsrelationsprimary keyforeign-keyeloquent database

### Embed Badge

![Health badge](/badges/mistery23-eloquent-object-relations/health.svg)

```
[![Health](https://phpackages.com/badges/mistery23-eloquent-object-relations/health.svg)](https://phpackages.com/packages/mistery23-eloquent-object-relations)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M94](/packages/mongodb-laravel-mongodb)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k5.1M32](/packages/tucker-eric-eloquentfilter)[spiritix/lada-cache

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

592456.3k2](/packages/spiritix-lada-cache)[korridor/laravel-computed-attributes

Laravel package that adds computed attributes to eloquent models. A computed attribute is an accessor were the computed value is saved in the database.

1253.4k](/packages/korridor-laravel-computed-attributes)

PHPackages © 2026

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