felipecwb / soundslike
Sounds Like Text Search
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/felipecwb/soundslike
Requires
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: 5.5.*
This package is not auto-updated.
Last update: 2025-09-28 01:28:04 UTC
README
PHP Sounds Like Text Search
composer require "felipecwb/soundslike"
It's looks like that:
use Felipecwb\SoundsLike\TextSearch; $search = new TextSearch([ "São Paulo - SP", "Osasco - SP", "Curitiba - PR", "Curitibanos - SC", "Vitória - ES", "Rio de Janeiro - RJ", "Natal - RN" ]); // find for the best matching text $result = $search->findBestMatch('Sao paulo'); $result->getPhrase(); //São Paulo - SP $result->getAgainst(); //Sao paulo $result->getSimilarity(); //7