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 today

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 54% 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

2329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86dc8a5e2e48c6a2223042e929b4d306ce437495a3c4aaf0e2e945355eda7789?d=identicon)[mistery23](/maintainers/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.1k7.2M71](/packages/mongodb-laravel-mongodb)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spiritix/lada-cache

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

591444.8k2](/packages/spiritix-lada-cache)[pdphilip/elasticsearch

An Elasticsearch implementation of Laravel's Eloquent ORM

145360.2k4](/packages/pdphilip-elasticsearch)[sebastiaanluca/laravel-boolean-dates

Automatically convert Eloquent model boolean attributes to dates (and back).

40111.7k1](/packages/sebastiaanluca-laravel-boolean-dates)

PHPackages © 2026

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