# kirschbaum-development/eloquent-power-joins

The Laravel magic you know, now applied to joins.

Repository: https://github.com/kirschbaum-development/eloquent-power-joins
Canonical: https://ross.abutalabs.com/products/eloquent-power-joins
Language: PHP
License: MIT
License Family: permissive
Topics: hacktoberfest, laravel, php
Last push: 2026-07-23T11:41:56+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 94, longevity 100
- inputs: {"age_days": 2361, "days_push": 41, "days_rel": 41, "gap_med": 26, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1574, forks 102 (observed 2026-08-28T04:05:05.828380+00:00)

## What it is
A Laravel package that brings Eloquent-style ergonomics to SQL joins, letting you join tables using relationship definitions via a joinRelationship() method. It also supports sorting by related-table columns and aggregations, and querying relationship existence with joins instead of where exists.

## Use cases
- join tables using eloquent relationships instead of raw join clauses
- sort query results by columns from related tables
- check relationship existence with joins instead of where exists
- apply model scopes in join contexts
- make laravel join queries more readable and maintainable

## When to choose
- you use Laravel Eloquent and write manual join clauses with hardcoded table/column names
- you need performant relationship existence checks or sorting by related-table aggregates

## When to avoid
- you don't use Laravel or Eloquent
- your queries need complex join types or raw SQL control beyond what the package exposes

## Facets
- artifact type: library
- maturity: active
- function: orm, database, middleware
- domain: web-development, backend, databases, developer-tools
- platform: php
- tags: laravel, eloquent, sql-joins, query-builder, relationships

## Member repositories
- kirschbaum-development/eloquent-power-joins (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:05.828380+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:57:39.450836+00:00, confidence not recorded.
  - readme: https://github.com/kirschbaum-development/eloquent-power-joins (fetched 2026-08-28T04:05:05.828380+00:00, sha 86db26363e8c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
