PHPackages                             divineomega/fuzzy-events - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. divineomega/fuzzy-events

Abandoned → [jord-jd/fuzzy-events](/?search=jord-jd%2Ffuzzy-events)Library[Utility &amp; Helpers](/categories/utility)

divineomega/fuzzy-events
========================

Perform actions based on fuzzy string matches

v4.0.0(2mo ago)151LGPL-3.0-onlyPHPPHP &gt;=7.1CI failing

Since Mar 10Pushed 2mo agoCompare

[ Source](https://github.com/Jord-JD/fuzzy-events)[ Packagist](https://packagist.org/packages/divineomega/fuzzy-events)[ GitHub Sponsors](https://github.com/DivineOmega)[ RSS](/packages/divineomega-fuzzy-events/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (2)Versions (4)Used By (0)

Fuzzy Events
============

[](#fuzzy-events)

[![Build Status](https://camo.githubusercontent.com/9ee3ed3d8ebe4970bf1e1698bf66b57591c07c1cd3d3036d5adab41715627d91/68747470733a2f2f7472617669732d63692e636f6d2f4a6f72642d4a442f66757a7a792d6576656e74732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/Jord-JD/fuzzy-events)

Fuzzy events is a PHP package that allows you to perform actions based on a fuzzy string matches.

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

[](#installation)

Install using the following Composer command.

```
composer require jord-jd/fuzzy-events
```

### Usage

[](#usage)

See the following usage example.

```
class Greeting implements FuzzyListenerInterface
{

    public function handle(string $query)
    {
        return 'Hello there!';
    }
}
```

```
$listeners = [
    Greeting::class => [
        'Hello',
        'Hi',
        'Hey',
        'Greetings',
        'Howdy',
        'Hello there',
        'Hi there',
    ],
];

$confidenceThreshold = 75;

$dispatcher = new FuzzyDispatcher($listeners, $confidenceThreshold);

$response = $dispatcher->fire('Greetingz!');

// $response = 'Hello there!'

try {
    $dispatcher->fire('Goodbye!');
} catch (ConfidenceTooLowException $e) {
    // No matches within specified confidence threshold!
}

$confidences = $dispatcher->getConfidences('Hi!');

// $confidences = [
//    Greeting::class => 80
// ]
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance83

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.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

Every ~1083 days

Total

3

Last Release

87d ago

Major Versions

v1.0.0 → v3.0.02026-02-14

v3.0.0 → v4.0.02026-02-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (12 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tomnomnom/phpwol

Wake On LAN for PHP

114.5k](/packages/tomnomnom-phpwol)

PHPackages © 2026

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