# nicolaslopezj/searchable

A php trait to search laravel models

Repository: https://github.com/nicolaslopezj/searchable
Canonical: https://ross.abutalabs.com/products/searchable
Language: PHP
License: MIT
License Family: permissive
Topics: php, laravel, search, eloquent-models, prioritizing-matches
Last push: 2025-07-26T01:59:35+00:00

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

## Adoption (not part of the score)
Stars 1996, forks 290 (observed 2026-08-28T04:06:03.483716+00:00)

## What it is
A PHP trait that adds a simple relevance-weighted search function to Laravel Eloquent models. It supports searching across table columns and relations with configurable priority weights.

## Use cases
- search laravel models by keyword
- rank search results by column priority
- search across eloquent relations with joins
- add simple full-text-like search to a laravel app without a search server
- paginate search results in laravel

## When to choose
- you have a small-to-medium laravel app and need simple model search without external services
- you want relevance weighting per column or relation
- you want search that composes with normal eloquent queries

## When to avoid
- you need high-performance search over large datasets
- you need fuzzy matching, typo tolerance, or faceted search
- you are not using laravel or eloquent

## Facets
- artifact type: library
- maturity: maintenance
- function: search-engine, database
- domain: web-development, databases
- platform: php
- tags: eloquent, laravel-trait, relevance-ranking, model-search, search, laravel

## Member repositories
- nicolaslopezj/searchable (main) score 38

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:03.483716+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:02:29.644542+00:00, confidence not recorded.
  - readme: https://github.com/nicolaslopezj/searchable (fetched 2026-08-28T04:06:03.483716+00:00, sha f466186c5666)
- Data as of 2026-08-30T08:39:29.467469+00:00.
