2017 © Pedro Peláez
 

library fuzzy

Nice PHP library for fuzzy string searching

image

ilya/fuzzy

Nice PHP library for fuzzy string searching

  • Sunday, June 1, 2014
  • by ilya.s
  • Repository
  • 5 Watchers
  • 34 Stars
  • 10,051 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

Fuzzy

Fuzzy searching in PHP made easy!, (*1)

Installation

composer require ilya/fuzzy:~1, (*2)

Use

array search(array $rows, string $query, integer $threshold = 3), (*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

This project is licensed under the MIT license., (*4)

The Versions

01/06 2014

dev-master

9999999-dev

Nice PHP library for fuzzy string searching

  Sources   Download

MIT

The Development Requires

search string fuzzy

15/04 2014

1.0.0

1.0.0.0

Nice PHP library for fuzzy string searching

  Sources   Download

MIT

The Development Requires

search string fuzzy