# calebporzio/sushi

Eloquent's missing "array" driver.

Repository: https://github.com/calebporzio/sushi
Canonical: https://ross.abutalabs.com/products/sushi
Homepage: https://usesushi.dev
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-02-21T02:54:39+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 68, release rhythm 39, longevity 100
- inputs: {"age_days": 2412, "days_push": 193, "days_rel": 193, "gap_med": 372, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3003, forks 184 (observed 2026-08-28T04:07:37.521194+00:00)

## What it is
Sushi is a PHP library that lets Laravel Eloquent models run on in-memory array data instead of a database, backed by SQLite. You add a trait and a $rows property to a model, and it behaves like a normal database-backed model with queries, relationships, and validation.

## Use cases
- use Eloquent models without a database
- store fixture data like states and countries in Laravel models
- seed static lookup tables from PHP arrays
- add relationships to array-backed models
- use exists validation rules without a real table

## When to choose
- you need small static datasets (states, roles, settings) queryable via Eloquent
- you want to test or prototype Laravel apps without database setup
- you need relationships between normal models and array-backed models

## When to avoid
- you need cross-database whereHas queries between Sushi and normal models
- you have large or frequently updated datasets
- your project doesn't use Laravel or Eloquent

## Facets
- artifact type: library
- maturity: active
- function: orm, database, data-generation
- domain: web-development, backend, developer-tools
- platform: php
- tags: laravel, eloquent, sqlite, fixture-data, array-driver, composer-package

## Member repositories
- calebporzio/sushi (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:37.521194+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-30T07:30:25.170665+00:00, confidence not recorded.
  - readme: https://github.com/calebporzio/sushi (fetched 2026-08-28T04:07:37.521194+00:00, sha 8da06c091288)
  - homepage: https://usesushi.dev (fetched 2026-08-29T09:45:42.962886+00:00, sha 2356f3d1407a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
