PHPackages                             dimanzver/fast-fuzzy-search - 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. dimanzver/fast-fuzzy-search

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

dimanzver/fast-fuzzy-search
===========================

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

v0.2.4(2y ago)03.5k↓11.2%1MITPHPPHP ^5.3.5 || ^7.0 || ^8.0

Since Sep 1Pushed 2y agoCompare

[ Source](https://github.com/dimanzver/FastFuzzySearch)[ Packagist](https://packagist.org/packages/dimanzver/fast-fuzzy-search)[ RSS](/packages/dimanzver-fast-fuzzy-search/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (1)

FastFuzzySearch aimed to search an array of words for the most similiar to the specified one

The used algorythm is much faster than using levenstein distance, or similiar\_text functions.

*Usage:*

```
require_once("./FastFuzzySearch.php");

//Get words array: (it's english names, starting from A,B,C)
$words = array(
    'Abbott', 'Abe', 'Addison', 'Adrian', 'Aiken', 'Ainsley', 'Al', 'Alan',
    'Alaric', 'Alban', 'Albert', 'Albion', 'Aldrich', 'Alec', 'Alex', 'Alexander',
    'Alexis', 'Alf', 'Alfie', 'Alfred', 'Alger', 'Algernon', 'Alick', 'Allan',
    'Allen', 'Alton', 'Alvin', 'Ambrose', 'Andrew', 'Andy', 'Anthony', 'Archer',
    'Armstrong', 'Arnold', 'Ashley', 'Aston', 'Atwater', 'Aubrey', 'Austin',
    'Avery', 'Bailey', 'Baldwin', 'Barclay', 'Barrett', 'Bartholomew', 'Barton',
    'Basil', 'Baxter', 'Baz', 'Benedict', 'Benjamin', 'Bennett', 'Benson', 'Bentley',
    'Berkley', 'Bernard', 'Bert', 'Bill', 'Blake', 'Bob', 'Bobby', 'Bond', 'Brad',
    'Bradley', 'Brent', 'Bret', 'Brewster', 'Brian', 'Brigham', 'Brooke', 'Bruce',
    'Bruno', 'Bryant', 'Buck', 'Bud', 'Burgess', 'Burton', 'Byron', 'Cade', 'Caesar',
    'Caldwell', 'Calvert', 'Calvin', 'Carl', 'Carlton', 'Carter', 'Carver', 'Cary',
    'Casey', 'Cassian', 'Cecil', 'Cedric', 'Chad', 'Chandler', 'Chapman', 'Charles',
    'Charlie', 'Charlton', 'Chase', 'Chester', 'Chris', 'Christian', 'Christopher',
    'Chuck', 'Clarence', 'Claude', 'Clay', 'Clayton', 'Clement', 'Cliff', 'Clifford',
    'Clifton', 'Clive', 'Clyde', 'Cole', 'Coleman', 'Colin', 'Conrad', 'Constant',
    'Conway', 'Corwin', 'Courtney', 'Craig', 'Crispin', 'Crosby', 'Curtis', 'Cuthbert', 'Cyril'
);

//Create FastFuzzySearch object:
$ffs = new FastFuzzySearch($words);

//Lets pretend, this is user's input:
$input = "charter";

//Lets get three most similiar english names:
$results = $ffs->find($input, 3);

//End output it:
print_r($results);
```

Results would be:

```
Array
(
    [0] => Array
        (
            [word] => carter
            [percent] => 0.75
        )

    [1] => Array
        (
            [word] => chad
            [percent] => 0.33333333333333
        )

    [2] => Array
        (
            [word] => charlie
            [percent] => 0.26666666666667
        )

)

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.3% 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

1038d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/006e8107d5fbf667c096b1166b783731b29c76de4763430d12579595010cb539?d=identicon)[dimanzver](/maintainers/dimanzver)

---

Top Contributors

[![MihanEntalpo](https://avatars.githubusercontent.com/u/3025716?v=4)](https://github.com/MihanEntalpo "MihanEntalpo (21 commits)")[![dimansuvorlinda](https://avatars.githubusercontent.com/u/34809155?v=4)](https://github.com/dimansuvorlinda "dimansuvorlinda (1 commits)")[![pinkslot](https://avatars.githubusercontent.com/u/2988005?v=4)](https://github.com/pinkslot "pinkslot (1 commits)")

---

Tags

searchcomparefuzzy

### Embed Badge

![Health badge](/badges/dimanzver-fast-fuzzy-search/health.svg)

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

###  Alternatives

[ruflin/elastica

Elasticsearch Client

2.3k52.4M229](/packages/ruflin-elastica)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15528.5M116](/packages/opensearch-project-opensearch-php)[rap2hpoutre/similar-text-finder

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

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

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

2234.0k3](/packages/mihanentalpo-fast-fuzzy-search)[ilya/fuzzy

Nice PHP library for fuzzy string searching

44107.9k](/packages/ilya-fuzzy)

PHPackages © 2026

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