PHPackages                             r-quintin/extended-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. r-quintin/extended-relations

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

r-quintin/extended-relations
============================

1.1.0(2y ago)021MITPHPPHP &gt;=8.0.0

Since Dec 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/r-quintin/ExtendedRelations)[ Packagist](https://packagist.org/packages/r-quintin/extended-relations)[ RSS](/packages/r-quintin-extended-relations/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (6)Used By (0)

ExtendedRelations
=================

[](#extendedrelations)

[![Latest Stable Version](https://camo.githubusercontent.com/21118e02b6d7ed517bd163a58c8fa8416266554ea2748a327908b8e20dbc4d20/687474703a2f2f706f7365722e707567782e6f72672f722d7175696e74696e2f657874656e6465642d72656c6174696f6e732f76)](https://packagist.org/packages/r-quintin/extended-relations)[![License](https://camo.githubusercontent.com/38f3eb520821bd14b543905bd5fa36a60e4e5b1747d7e6f32eb9ea753457a362/687474703a2f2f706f7365722e707567782e6f72672f722d7175696e74696e2f657874656e6465642d72656c6174696f6e732f6c6963656e7365)](https://packagist.org/packages/r-quintin/extended-relations)

The ExtendedRelations package for Laravel made relations for you and loads it automatically in array serialization.

Installation
------------

[](#installation)

```
$ composer require r-quintin/extended-relations

```

Simple usage
------------

[](#simple-usage)

```
use RQuintin\ExtendedRelations\ExtendedModel;

class Driver extends ExtendedModel
{
  /**
   * Relations on this model
   *
   * @var string|string[]|null
   */
    protected string|array|null $relationships = ['vehicles'];

  /**
   * Loaded relations in serialization
   *
   * @var string|array|null
   */
    protected string|array|null $loads = ['vehicles'];
}
```

Documentation
-------------

[](#documentation)

For setup, usage guidance, and all other docs - please consult the [Project Wiki](https://github.com/r-quintin/ExtendedRelations/wiki).

License
-------

[](#license)

ExtendedRelations is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

Total

5

Last Release

973d ago

Major Versions

0.2.1 → 1.0.02023-03-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/c611a8d0891aab62ef51fc9373533bf41b2f698287f3732f07cfaa24eb97d5bd?d=identicon)[rquintin](/maintainers/rquintin)

---

Top Contributors

[![r-quintin](https://avatars.githubusercontent.com/u/120577652?v=4)](https://github.com/r-quintin "r-quintin (18 commits)")

### Embed Badge

![Health badge](/badges/r-quintin-extended-relations/health.svg)

```
[![Health](https://phpackages.com/badges/r-quintin-extended-relations/health.svg)](https://phpackages.com/packages/r-quintin-extended-relations)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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