PHPackages                             defstudio/laravel-keyby-id - 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. defstudio/laravel-keyby-id

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

defstudio/laravel-keyby-id
==========================

Adds KeyBy('id') to Eloquent relationships

1.0.0(5y ago)06.6k↓100%MITPHPPHP ^7.2

Since Jun 4Pushed 5y ago2 watchersCompare

[ Source](https://github.com/defstudio/laravel-keyby-id)[ Packagist](https://packagist.org/packages/defstudio/laravel-keyby-id)[ RSS](/packages/defstudio-laravel-keyby-id/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-keyby-id
================

[](#laravel-keyby-id)

Adds KeyBy('id') to Eloquent relationships

###  Health Score

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2118d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db5e0ab5568062368a52c61d67381c1a35be5e5c816968dd3883bc7ba2d46b53?d=identicon)[fabio.ivona](/maintainers/fabio.ivona)

---

Top Contributors

[![fabio-ivona](https://avatars.githubusercontent.com/u/8792274?v=4)](https://github.com/fabio-ivona "fabio-ivona (4 commits)")

---

Tags

eloquentRelationshipskeyby

### Embed Badge

![Health badge](/badges/defstudio-laravel-keyby-id/health.svg)

```
[![Health](https://phpackages.com/badges/defstudio-laravel-keyby-id/health.svg)](https://phpackages.com/packages/defstudio-laravel-keyby-id)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k31.9M82](/packages/owen-it-laravel-auditing)[spatie/laravel-translatable

A trait to make an Eloquent model hold translations

2.4k22.1M350](/packages/spatie-laravel-translatable)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.5k23.2M26](/packages/kirschbaum-development-eloquent-power-joins)[spatie/eloquent-sortable

Sortable behaviour for eloquent models

1.5k22.0M232](/packages/spatie-eloquent-sortable)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11318.5M19](/packages/anourvalar-eloquent-serialize)[indexzer0/eloquent-filtering

Powerful eloquent filtering

22523.2k2](/packages/indexzer0-eloquent-filtering)

PHPackages © 2026

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