PHPackages                             ilya/fuzzy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. ilya/fuzzy

ActiveLibrary[Search &amp; Filtering](/categories/search)

ilya/fuzzy
==========

Nice PHP library for fuzzy string searching

1.0.0(12y ago)4298.7k↓39.1%8MITPHP

Since Apr 15Pushed 11y ago5 watchersCompare

[ Source](https://github.com/ilya-dev/fuzzy)[ Packagist](https://packagist.org/packages/ilya/fuzzy)[ RSS](/packages/ilya-fuzzy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Fuzzy
=====

[](#fuzzy)

Fuzzy searching in PHP made easy!

Installation
------------

[](#installation)

`composer require ilya/fuzzy:~1`

Use
---

[](#use)

`array search(array $rows, string $query, integer $threshold = 3)`

```
$rows = ['f', 'fo', 'foo', 'foob', 'fooba', 'foobar'];

$fuzzy = new \Fuzzy\Fuzzy;

$query = 'foobar';

$fuzzy->search($rows, $query, 0); // ['foobar']
$fuzzy->search($rows, $query, 1); // ['foobar', 'fooba']
$fuzzy->search($rows, $query, 2); // ['foobar', 'fooba', 'foob']
$fuzzy->search($rows, $query, 3); // ['foobar', 'fooba', 'foob', 'foo']
```

License
-------

[](#license)

This project is licensed under the MIT license.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4416d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/776b7b64a5d05531a18e8874c09069a25dce24b2e3efa60ea521e25e9a35281a?d=identicon)[ilya.s](/maintainers/ilya.s)

---

Top Contributors

[![ilya-dev](https://avatars.githubusercontent.com/u/6959318?v=4)](https://github.com/ilya-dev "ilya-dev (16 commits)")

---

Tags

searchstringfuzzy

### Embed Badge

![Health badge](/badges/ilya-fuzzy/health.svg)

```
[![Health](https://phpackages.com/badges/ilya-fuzzy/health.svg)](https://phpackages.com/packages/ilya-fuzzy)
```

###  Alternatives

[ruflin/elastica

Elasticsearch Client

2.3k50.4M203](/packages/ruflin-elastica)[rap2hpoutre/similar-text-finder

Fuzzy Search, similar text finder: "Did you mean `foo` ?"

13877.7k3](/packages/rap2hpoutre-similar-text-finder)[mihanentalpo/fast-fuzzy-search

Fast fuzzy search in an array of strings for the most similiar ones

2133.0k3](/packages/mihanentalpo-fast-fuzzy-search)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
