Russian metaphone phonetic algorithm implementation for PHP alternatives and similar libraries
Based on the "Strings" category.
Alternatively, view Russian metaphone phonetic algorithm implementation for PHP alternatives based on common mentions on social networks and blogs.
-
Mobile-Detect
A lightweight PHP class for detecting mobile devices (including tablets). -
UUID
A library for generating UUIDs. -
Agent
A PHP desktop/mobile user agent parser, based on Mobiledetect. -
SQL Formatter
A library for formatting SQL statements. -
Stringy
A string manipulation library with multibyte support. -
Slugify
A library to convert strings to slugs. -
Device Detector
Another library for parsing user agent strings. -
Jieba-PHP
A PHP port of Python's jieba. Chinese text segmentation for natural language processing. -
Regex
A sane interface for php's built in preg_* functions -
URLify
A PHP port of Django's URLify.js. -
Portable UTF-8
Portable UTF-8 library for PHP -
Color Jizz
A library for manipulating and converting colours. -
ANSI to HTML5
An ANSI to HTML5 converter library. -
Portable ASCII
Portable ASCII library - performance optimized (ascii) string functions for php. -
Google Translate For Free
google-translator translation language-detection detect-language translate php google-translate translator -
HtmlMin
HtmlMin: HTML Compressor and Minifier via PHP -
HaikunatorPHP
Generate Heroku-like random names to use in your php applications. -
Patchwork UTF-8
A portable library for working with UTF-8 strings. -
Case converter
Convert strings between 13 naming conventions -
Text
A text manipulation library. -
Opis String
Manipulate multibyte strings -
Url highlight
Library to parse and make clickable urls from string input -
Hoa String
Another UTF-8 string library. -
UA Parser
A library for parsing user agent strings.
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Russian metaphone phonetic algorithm implementation for PHP or a related project?
README
Russian metaphone phonetic algorithm implementation for PHP
port of ruby's https://github.com/pavlo/russian_metaphone
https://en.wikipedia.org/wiki/Metaphone
see http://forum.aeroion.ru/topic461.html (Russian algorithm description)
Installation
composer require insolita/metaphone
Usage
<?php
$word = 'вода';
$phonetic = (new Metaphone())->processWord($word); //вада
Default set of filters include filter for lastname endings, if you want exclude only these filter, you can use helper
$withLastnames = (new Metaphone())->processWord('Чернышевский'); //чирнаш#
$withoutLastnames = (new Metaphone())->skipLastnames()->processWord('Чернышевский'); //чирнашифский
Provide custom filters. Each filter must implement insolita\metaphone\Filter
$metaphone = new Metaphone([Normalize::class, new CustomFilter($params), new HandleConsonants(true), ...])
$phonetic = $metaphone->processWord($word);
See tests folder for better understanding filters