topclaudy/compoships
Multi-columns relationships for Laravel's Eloquent ORM observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 98
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 35
- age_days: 3073
- days_rel: 14
- days_push: 14
- n_releases_24m: 10
Adoption not part of the score
1207 stars · 143 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Compoships is a PHP library that extends Laravel's Eloquent ORM to support relationships based on two or more columns (composite keys). It works via a base model class or trait, enabling eager loading of relationships that match multiple columns.
Use cases
- define eloquent relationships on composite keys
- eager load relationships matching multiple columns
- work with legacy database schemas in laravel
- hasMany relationship with multiple foreign keys
- belongsTo relationship with two foreign keys
When to choose
- you use Laravel Eloquent and need relationships matching multiple columns
- you work with third-party or pre-existing schemas with composite keys
- where clauses fail during eager loading because of null attributes
When to avoid
- your schema uses single-column keys, which Eloquent handles natively
- you don't use Laravel or Eloquent
- you need full composite primary key support for CRUD operations rather than just relationships
Facets
library · maturity active
orm database web-development databases backend php eloquent composite-keys laravel-package relationships laravel
1 source
- readme: https://github.com/topclaudy/compoships · fetched 2026-08-28 · 7c73ce9ebd98
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| topclaudy/compoships | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="topclaudy/compoships")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem