noodlesnz/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.

1.0.1 2016-04-08 23:31 UTC

This package is auto-updated.

Last update: 2024-10-25 11:53:03 UTC


README

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