Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Searchy Laravel Package

tom-lingham/searchy

Searchy is a Laravel package for fuzzy database searching. Query multiple columns with relevance scoring and drivers like simple, fuzzy, and levenshtein, returning the most relevant records instead of relying on plain exact LIKE matches.

View on GitHub
Deep Wiki
Context7

Searchy is a lightweight Laravel package for adding flexible search to Eloquent models and database queries. It offers a clean, fluent API for searching one or more columns, with support for aliases, weighted fields, and custom search drivers—so you can tailor results without writing complex SQL.

  • Fluent, chainable search API for Laravel models
  • Search multiple columns with aliases and field weights
  • Built-in drivers plus custom driver support
  • Works with Eloquent and the query builder
  • Configurable, reusable search definitions
Frequently asked questions about Searchy
What is Laravel Searchy and what does it do?
Laravel Searchy is a package that adds fuzzy search to Eloquent models by matching user-driven queries across database columns. It supports drivers such as simple, fuzzy, Levenshtein, and soundex, and lets you weight columns for relevance. It is intended for small Laravel monoliths or internal admin search where basic typo tolerance is enough. The repository is archived and unmaintained, so treat it as a legacy helper rather than a strategic search platform.
How do I install Laravel Searchy with Composer?
Historically you would require tom-lingham/searchy through Composer, but the package was last released in May 2020 and is archived. Modern Laravel and PHP versions may not satisfy its Composer constraints, so run a timeboxed compatibility spike before adding it. If you proceed, pin a specific version or commit and consider forking or vendoring the package under your own ownership.
Which Laravel and PHP versions does Searchy support?
Searchy likely targets older Laravel and PHP constraints because its last release was in 2020. Assume incompatibility with Laravel 10, Laravel 11, and PHP 8.2 or newer until you have proven otherwise in your environment. Validate composer.json constraints against your exact Laravel and PHP matrix on both the lowest and highest supported versions.
How do I configure Searchy search drivers and column weights?
Searchy lets you choose a matching driver such as simple, fuzzy, Levenshtein, or soundex and assign weights to the columns being searched. The exact configuration API depends on the package version, so check the original source and documentation for your pinned release. Keep Searchy configuration and result types behind an internal SearchService interface so callers are not coupled to the package.
Can Searchy handle typo-tolerant search across multiple columns?
Yes, Searchy is designed for user-driven fuzzy matching across multiple Eloquent columns using drivers like Levenshtein, soundex, and fuzzy matching. Weighted columns can help prioritize more relevant fields in the result ordering. It works best for small datasets and internal search, not for faceted, language-aware, or high-scale relevance ranking. Benchmark relevance and latency against your real data before relying on it.
Is Laravel Searchy safe for production use?
Searchy carries high operational risk because it is archived and unmaintained, with no upstream security patches or PHP and Laravel compatibility fixes. Additional concerns include stale Composer constraints, database-specific Levenshtein behavior, SQL escaping, and performance degradation on large tables. If retained, isolate it behind a narrow adapter with a fallback implementation and require security scanning. Do not make it a strategic dependency without a fork-and-own decision.
What are alternatives to Searchy for fuzzy search in Laravel?
Common alternatives include Laravel Scout with Meilisearch, Typesense, or OpenSearch for dedicated search features, and PostgreSQL trigram or full-text search for database-native matching. MySQL full-text search or simple LIKE queries may be enough for basic admin search. Choose based on your requirements for relevance ranking, typo tolerance, faceting, latency, and scale. A maintained engine is usually safer for new projects.
How does Searchy perform on large tables or high-traffic search?
Fuzzy and Levenshtein-style matching can become expensive on large tables and high-query-per-second workloads. Searchy is a poor fit for public, high-throughput search that needs ranking, faceting, or language-aware behavior. Run a discovery spike with representative data and measure p95 latency before adoption. If performance is inadequate, move to database-native full-text or trigram search or a dedicated search engine.
Does Searchy work with MySQL, PostgreSQL, and other databases?
Searchy's fuzzy and Levenshtein behavior may vary by database engine and collation, so portability should not be assumed. Test on every target database, including pagination, escaping, injection safety, and fallback behavior when a driver is unavailable. Validate results and query performance against realistic data volumes. Keep a fallback implementation using LIKE, full-text, or trigram search if the adapter fails.
Is Laravel Searchy maintained, and should I use it in a new project?
No, the repository is archived, the last release was in 2020, and it has weak production adoption signals. For new projects, prefer Laravel Scout with a maintained engine, PostgreSQL trigram or full-text search, or MySQL full-text search. If you must use Searchy for legacy or internal search, fork or vendor it with tests and CI and document ownership. Define an exit path before broad rollout.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console