loilo/fuse
Fuse.php brings Fuse.js-style fuzzy search to PHP and Laravel. Add fast, typo-tolerant full-text search to arrays, collections, and Eloquent models, complete with weighted keys, relevance scoring, and bitap matching—no external search engine or server required.
loilo/fuse is a pure-PHP port of Fuse.js for fuzzy search and ranking. For a Laravel/PHP product, its main value is adding typo-tolerant, client-like search behavior inside the application without introducing Elasticsearch, Meilisearch, or Algolia. It is best treated as an application-layer matching/ranking utility, not as a primary search platform.
FuzzySearchService, repository, or query object. Avoid exposing package-specific arrays and options throughout controllers and models.LIKE-based fuzzy matching or frontend-only search for a narrow use case. Build a shadow-mode comparison against the current implementation, log result differences, and use a feature flag before making it the default. If current search is database-driven, keep SQL filtering as the coarse retrieval step and use loilo/fuse only for ranking the candidate set.How can I help you explore Laravel packages today?