Skip to content

NoodlesNZ/double-metaphone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Minimum PHP Version Build Status

double-metaphone

This class implements a "sounds like" algorithm developed by Lawrence Philips which he published in the June, 2000 issue of C/C++ Users Journal. Double Metaphone is an improved version of Philips' original Metaphone algorithm.

Installation

To add this package as a local, per-project dependency to your project, simply add a dependency on NoodlesNZ/double-metaphone to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on double-metaphone:

{
    "require": {
        "NoodlesNZ/double-metaphone": "~1.0"
    }
}

Usage

$d = new DoubleMetaphone('richard');

echo $d->primary . "\n";
echo $d->secondary . "\n";

The code above yields the output below:

RXRT
RKRT