PHPackages                             amethyst/relation - 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. amethyst/relation

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

amethyst/relation
=================

v0.3.2(2y ago)01.6k3MITPHPPHP &gt;=8.2

Since Sep 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/amethyst-php/relation)[ Packagist](https://packagist.org/packages/amethyst/relation)[ RSS](/packages/amethyst-relation/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (4)Versions (13)Used By (3)

amethyst-relation
=================

[](#amethyst-relation)

[![Action Status](https://github.com/amethyst-php/relation/workflows/Test/badge.svg)](https://github.com/amethyst-php/relation/actions)[![Amethyst](https://camo.githubusercontent.com/eb7b372d7bd2cd9b545ecbe3f7377d421eb2893ab261c6120e7a393b9a706bcd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b6167652d416d6574687973742d376535376332)](https://github.com/amethyst-php/amethyst)

Requirements
============

[](#requirements)

PHP 8.2 and later.

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

[](#installation)

You can install it via [Composer](https://getcomposer.org/) by typing the following command:

```
composer require amethyst/relation
```

The package will automatically register itself.

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

[](#documentation)

[Read](docs/index.md)

Testing
-------

[](#testing)

Configure the .env file before launching `./vendor/bin/phpunit`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~371 days

Total

12

Last Release

777d ago

PHP version history (3 changes)v0.1.0PHP &gt;=7.1

v0.2.0PHP &gt;=7.2

v0.3.0PHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

[![railken](https://avatars.githubusercontent.com/u/26530231?v=4)](https://github.com/railken "railken (24 commits)")

---

Tags

laravelrelationamethyst

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/amethyst-relation/health.svg)

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

###  Alternatives

[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[biiiiiigmonster/hasin

Laravel framework relation has in implement

154552.4k](/packages/biiiiiigmonster-hasin)[dcat/laravel-wherehasin

Laravel ORM whereHasIn

247149.8k4](/packages/dcat-laravel-wherehasin)[reedware/laravel-composite-relations

Adds the ability define composite eloquent relations.

17131.3k](/packages/reedware-laravel-composite-relations)[codenco-dev/eloquent-model-tester

Test easier your Eloquent Models in your Laravel Project

208.3k1](/packages/codenco-dev-eloquent-model-tester)[resultsystems/relationships

Several Relations for Laravel.

121.7k1](/packages/resultsystems-relationships)

PHPackages © 2026

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