PHPackages                             kamicloud/laravel-unofficial-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kamicloud/laravel-unofficial-relations

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kamicloud/laravel-unofficial-relations
======================================

1.0.0(6y ago)482MITPHPPHP ^7.2

Since May 2Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Kamicloud/laravel-unofficial-relations)[ Packagist](https://packagist.org/packages/kamicloud/laravel-unofficial-relations)[ RSS](/packages/kamicloud-laravel-unofficial-relations/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

laravel-unoffical-relations
===========================

[](#laravel-unoffical-relations)

This package provides several unofficial-relations to help laravel developer load models easily.

Available relations
-------------------

[](#available-relations)

### HasManyBySet

[](#hasmanybyset)

```
* Can load relation by id array or string
*
* @param $related
* @param string|null $foreignKey Format id1, id2 | array
* @param string|null $relatedKey
* @param string|callable $delimiter Default ',', allows customize function or null(for array foreignKey)

```

### HasMorphToByMapRelation

[](#hasmorphtobymaprelation)

```
* Can load morphTo with customize map
*
* @param  string  $name
* @param  string  $type Same as MorphTo
* @param  string  $id Same as MorphTo
* @param  string  $ownerKey Same as MorphTo
* @param  array|null $map [Morph type key name in DB => Model namespace]

```

### HasManyBySetAndMorphToByMapRelation

[](#hasmanybysetandmorphtobymaprelation)

```
* Can load morphTo with customize map and id can be a set
*
* @param  string  $name
* @param  string  $type Same as MorphTo
* @param  string  $id Same as MorphTo
* @param  string  $ownerKey Same as MorphTo
* @param  array|null $map Same as HasMorphToByMapRelation
* @param  string|callable $delimiter Same as HasManyBySetRelationship

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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 ~26 days

Total

2

Last Release

2547d ago

Major Versions

0.01 → 1.0.02019-05-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/904620f627db468206e26cf62768489f9d226e1e0cc4c549e75f43fd94bf147a?d=identicon)[Kamicloud](/maintainers/Kamicloud)

---

Top Contributors

[![kamicloud](https://avatars.githubusercontent.com/u/10206616?v=4)](https://github.com/kamicloud "kamicloud (11 commits)")

### Embed Badge

![Health badge](/badges/kamicloud-laravel-unofficial-relations/health.svg)

```
[![Health](https://phpackages.com/badges/kamicloud-laravel-unofficial-relations/health.svg)](https://phpackages.com/packages/kamicloud-laravel-unofficial-relations)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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