PHPackages                             loilo/fuse - 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. loilo/fuse

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

loilo/fuse
==========

Fuzzy search for PHP based on Bitap algorithm

7.1.1(1y ago)3581.8M—8.3%34[2 issues](https://github.com/loilo/Fuse/issues)[2 PRs](https://github.com/loilo/Fuse/pulls)11Apache-2.0PHPPHP ^7.4 || ^8.0CI passing

Since Nov 7Pushed 2mo ago8 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (41)Used By (11)

[![The Fuse logo, a violet asterisk, in reference to the Fuse.js logo](fuse.svg)](fuse.svg)

Fuse
====

[](#fuse)

*A fuzzy search library for PHP*

[![Tests](https://camo.githubusercontent.com/55786f14287f04261c0d31540a32f75953223c0cf8af127ee0aa1ce6662ffbe5/68747470733a2f2f62616467656e2e6e65742f6769746875622f636865636b732f6c6f696c6f2f467573652f6d6173746572)](https://github.com/loilo/Fuse/actions)[![Packagist](https://camo.githubusercontent.com/b517da5b66d3a2c00a13753121659af49812f053ff42ab53dc88ff40a049b258/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6c6f696c6f2f66757365)](https://packagist.org/packages/loilo/fuse)[![PHP Version](https://camo.githubusercontent.com/fb12d2224e085ef3b92fae40f05ece76def24ef89e5b52bd3d43633fed0f3e83/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6c6f696c6f2f66757365)](https://camo.githubusercontent.com/fb12d2224e085ef3b92fae40f05ece76def24ef89e5b52bd3d43633fed0f3e83/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6c6f696c6f2f66757365)

This is a PHP port of the awesome [Fuse.js](https://github.com/krisk/fuse) project and aims to provide full API compatibility wherever possible.

Check out their [demo](https://fusejs.io/demo.html) and [examples](https://fusejs.io/examples.html) to get a good feel for what this library is capable of.

> Latest compatible Fuse.js version: 7.1.0

---

**Table of Contents:**

- [Installation](#installation)
- [Usage](#usage)
- [Options](#options)
- [Methods](#methods)
- [Differences with Fuse.js](#differences-with-fusejs)
- [Development](#development)

---

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

[](#installation)

This package is available via Composer. To add it to your project, just run:

```
composer require loilo/fuse
```

Note that at least PHP 7.4 is needed to use Fuse. For technical reasons, automatic testing is only run against PHP 8.2+.

Usage
-----

[](#usage)

Here's a simple usage example:

```
