# squirephp/squire

A library of static Eloquent models for common fixture data.

Repository: https://github.com/squirephp/squire
Canonical: https://ross.abutalabs.com/products/squirephp-squire
Language: PHP
License: MIT
License Family: permissive
Topics: eloquent, laravel, squire
Last push: 2026-08-14T16:24:41+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 79, longevity 100
- inputs: {"age_days": 2156, "days_push": 19, "days_rel": 62, "gap_med": 89.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1052, forks 76 (observed 2026-08-28T04:03:23.249077+00:00)

## What it is
Squire is a PHP library providing static, read-only Eloquent models for common fixture data such as countries, currencies, airports, airlines, timezones, and regions. It works like any Laravel Eloquent model but is backed by bundled data instead of a database, and supports multiple languages and model relationships.

## Use cases
- populate country dropdowns on address forms
- attach airport data to flight models via relationships
- validate user input against a list of countries or currencies
- get currency information and format money in a Laravel app
- query static reference data like timezones and continents with Eloquent syntax

## When to choose
- you need common reference data (countries, currencies, airports) in a Laravel app without maintaining your own database tables
- you want Eloquent-style querying and relationships for read-only fixture data
- you need localized names for countries or currencies in multiple languages

## When to avoid
- you need writable models or user-generated data persistence
- your app is not built on Laravel or the Eloquent ORM
- you need highly custom or frequently updated reference data not covered by the available models

## Facets
- artifact type: library
- maturity: active
- function: orm, data-generation, internationalization
- domain: web-development, backend, developer-tools
- platform: php
- tags: laravel, eloquent, fixture-data, static-models, read-only-models, validation, web-server

## Member repositories
- squirephp/squire (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:23.249077+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-30T06:59:45.574810+00:00, confidence not recorded.
  - readme: https://github.com/squirephp/squire (fetched 2026-08-28T04:03:23.249077+00:00, sha 6ddf31ba9a4f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
