PHPackages                             publica/relaquent - 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. publica/relaquent

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

publica/relaquent
=================

Extension of Laravel's Eloquent relationships: additional relationship types, query joins, pivot models, converters and helpers

02PHP

Since Jul 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/publicaddm/relaquent)[ Packagist](https://packagist.org/packages/publica/relaquent)[ RSS](/packages/publica-relaquent/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Note to anyone using this
-------------------------

[](#note-to-anyone-using-this)

This project was abandoned by Riesjart. He rewrote history on his packagist repo which broke a project we were working on.

Version
-------

[](#version)

Current release: **v0.1.1**

This repository uses [Semantic Versioning (SemVer) v2.0.0](http://semver.org/spec/v2.0.0.html).

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1
- Laravel &gt;= 5.6

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

[](#installation)

Pull this package in through Composer.

```
composer require publica/relaquent "^0.1"

```

There is no service provider that needs to be registered in your Laravel application.

Features
--------

[](#features)

### Additional relationship types

[](#additional-relationship-types)

- `BelongsToMorph`
- `HasOneThrough`
- `MorphOneThrough`

### Making query joins based on relations

[](#making-query-joins-based-on-relations)

- `BelongsTo`
- `BelongsToMany`
- `HasMany`
- `HasManyThrough`
- `HasOne`

### Use models as (morph) pivots

[](#use-models-as-morph-pivots)

### Convert relationships to other types

[](#convert-relationships-to-other-types)

- `MorphTo` to `BelongsToMorph`
- `MorphMany` to `MorphOne`
- `HasMany` to `HasOne`
- `MorphToMany` to `HasMany`
- `MorphToMany` to `MorphMany`
- `MorphToMany` to `MorphOneThrough`
- `BelongsToMany` to `HasMany`
- `BelongsToMany` to `HasOneThrough`
- `BelongsTo` to "self-referring" `HasMany`
- `BelongsTo` to "self-referring-without-self" `HasMany`

### Relation helpers

[](#relation-helpers)

#### BelongsTo / MorphTo / BelongsToMorph

[](#belongsto--morphto--belongstomorph)

`is`, `isDirty`, `isNot`, `isNull`, `getForeignValue`, `notNull`

`MorphTo` only: `getMorphTypeValue`, `isOfType`

#### BelongsToMany / MorphToMany / HasOneThrough / MorphOneThrough

[](#belongstomany--morphtomany--hasonethrough--morphonethrough)

`make`, `withAllPivotColumns`

Future plans
------------

[](#future-plans)

### Additional relationship types

[](#additional-relationship-types-1)

- `BelongsToThrough`

### Making query joins based on relations

[](#making-query-joins-based-on-relations-1)

- `BelongsToMorph`
- `HasOneThrough`
- `MorphMany`
- `MorphOne`
- `MorphOneThrough`
- `MorphTo`
- `MorphToMany`

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e489c6c830921f9442a464603f98e7e7772ad2dafb00ad2fdfb4aa46bbc66ed?d=identicon)[publica](/maintainers/publica)

---

Top Contributors

[![antony-publica](https://avatars.githubusercontent.com/u/6510282?v=4)](https://github.com/antony-publica "antony-publica (2 commits)")

### Embed Badge

![Health badge](/badges/publica-relaquent/health.svg)

```
[![Health](https://phpackages.com/badges/publica-relaquent/health.svg)](https://phpackages.com/packages/publica-relaquent)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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