PHPackages                             omaximus/laravel-pivot-polymorph - 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. omaximus/laravel-pivot-polymorph

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

omaximus/laravel-pivot-polymorph
================================

Fully polymorphic pivot relations for laravel eloquent

v2.1(4y ago)226.3k5[1 issues](https://github.com/omaximus/laravel-pivot-polymorph/issues)PHPPHP &gt;=7.1.3|^8.0

Since Jan 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/omaximus/laravel-pivot-polymorph)[ Packagist](https://packagist.org/packages/omaximus/laravel-pivot-polymorph)[ RSS](/packages/omaximus-laravel-pivot-polymorph/feed)WikiDiscussions master Synced 2w ago

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

Polymorphic relations for eloquent.
===================================

[](#polymorphic-relations-for-eloquent)

This package supports fully morph many-to-many relation.

Usage
-----

[](#usage)

Include trait `\Pisochek\PivotPolymorph\Concerns\HasRelationships` to model. Then like any other relation, write, for example:

`return $this->morphsTo('parentName', 'relatedName', 'table');`

Any your thoughts and corrections/extensions are much appreciated, functionality is not full yet.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~338 days

Total

14

Last Release

1559d ago

Major Versions

v1.0.10 → v2.02019-11-22

v1.0.11 → v2.12022-03-24

PHP version history (3 changes)v1.0.0PHP &gt;=5.6.4

v2.0PHP &gt;=7.1.3

v2.1PHP &gt;=7.1.3|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8122734?v=4)[Max Omelchenko](/maintainers/omaximus)[@omaximus](https://github.com/omaximus)

---

Top Contributors

[![namewithin](https://avatars.githubusercontent.com/u/265517?v=4)](https://github.com/namewithin "namewithin (4 commits)")[![alexeykostenko](https://avatars.githubusercontent.com/u/6564267?v=4)](https://github.com/alexeykostenko "alexeykostenko (3 commits)")[![omaximus](https://avatars.githubusercontent.com/u/8122734?v=4)](https://github.com/omaximus "omaximus (2 commits)")[![vshvoruk](https://avatars.githubusercontent.com/u/97603092?v=4)](https://github.com/vshvoruk "vshvoruk (1 commits)")

---

Tags

laravelrelationspolymorphic

### Embed Badge

![Health badge](/badges/omaximus-laravel-pivot-polymorph/health.svg)

```
[![Health](https://phpackages.com/badges/omaximus-laravel-pivot-polymorph/health.svg)](https://phpackages.com/packages/omaximus-laravel-pivot-polymorph)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[korridor/laravel-has-many-merged

Custom relationship for Eloquent that merges/combines multiple one-to-may (hasMany) relationships

91132.4k1](/packages/korridor-laravel-has-many-merged)[cybercog/laravel-ownership

Laravel Ownership simplify management of Eloquent model's owner.

9028.6k3](/packages/cybercog-laravel-ownership)[korridor/laravel-has-many-sync

Laravel has many sync

3690.9k](/packages/korridor-laravel-has-many-sync)

PHPackages © 2026

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