# andersao/l5-repository

Laravel 5 - Repositories to abstract the database layer

Repository: https://github.com/andersao/l5-repository
Canonical: https://ross.abutalabs.com/products/l5-repository
Homepage: http://andersao.github.io/l5-repository
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-05-27T14:33:20+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 84, release rhythm 62, longevity 100
- inputs: {"age_days": 4220, "days_push": 98, "days_rel": 98, "gap_med": 112.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4200, forks 882 (observed 2026-08-28T04:08:38.935630+00:00)

## What it is
A Laravel package that implements the Repository pattern to abstract the database layer, providing base repositories, criteria, cache, validators, and presenters for Eloquent models. It includes artisan generators for scaffolding repositories and related classes.

## Use cases
- abstract the database layer in a Laravel app
- implement the repository pattern with Eloquent
- apply query criteria to repositories
- cache repository query results
- generate repository classes with artisan
- add validation and presenters to data access

## When to choose
- you use Laravel 5+ and want a structured data layer
- you want reusable query criteria and caching around Eloquent
- you prefer the repository pattern for testability and maintainability

## When to avoid
- you prefer Laravel's modern active-record style without extra abstraction
- you use a framework other than Laravel
- you need a package with frequent updates and active development

## Facets
- artifact type: library
- maturity: maintenance
- function: orm, database, caching, middleware
- domain: web-development, backend, databases, developer-tools
- platform: php
- tags: repository-pattern, laravel, eloquent, data-layer, criteria, presenters, validators

## Member repositories
- andersao/l5-repository (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:38.935630+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-29T18:22:32.850096+00:00, confidence not recorded.
  - readme: https://github.com/andersao/l5-repository (fetched 2026-08-28T04:08:38.935630+00:00, sha 0579d10f89eb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
