PHPackages                             voku/phonetic-algorithms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. voku/phonetic-algorithms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

voku/phonetic-algorithms
========================

Phonetic-Algorithms for fuzzy searching | PHP

5.0.0(4y ago)1738.4k↓23.8%8[2 PRs](https://github.com/voku/phonetic-algorithms/pulls)1MITPHPPHP &gt;=7.0.0

Since Mar 27Pushed 2y ago2 watchersCompare

[ Source](https://github.com/voku/phonetic-algorithms)[ Packagist](https://packagist.org/packages/voku/phonetic-algorithms)[ Fund](https://www.paypal.me/moelleken)[ GitHub Sponsors](https://github.com/voku)[ RSS](/packages/voku-phonetic-algorithms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (11)Used By (1)

[![Build Status](https://github.com/voku/phonetic-algorithms/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/voku/phonetic-algorithms/actions)[![Coverage Status](https://camo.githubusercontent.com/8da0f5b0f5da2705fabcdc8b264ecd3c529440162371487c4f0b72f52b6e30f0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f766f6b752f70686f6e657469632d616c676f726974686d732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/voku/phonetic-algorithms?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/46b77c9e2f310fbaa7a1419e9aaf7b50ad7280360c3bf380085da918a8098d32/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f70686f6e657469632d616c676f726974686d732f762f737461626c65)](https://packagist.org/packages/voku/phonetic-algorithms)[![Total Downloads](https://camo.githubusercontent.com/39d179817ea87f5406c3fdf47797e8bb1152ebe782ff0844b4775a3f6676b472/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f70686f6e657469632d616c676f726974686d732f646f776e6c6f616473)](https://packagist.org/packages/voku/phonetic-algorithms)[![Latest Unstable Version](https://camo.githubusercontent.com/0e1f39f00f01e90cf3816bf83a41bcaff4cdb592a5c7abef8087c2ccd738ad6b/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f70686f6e657469632d616c676f726974686d732f762f756e737461626c65)](https://packagist.org/packages/voku/phonetic-algorithms)[![License](https://camo.githubusercontent.com/2945c585c0ac8e7a267b29078c6e4e4769d279e8fc56308832ce1985943d5468/68747470733a2f2f706f7365722e707567782e6f72672f766f6b752f70686f6e657469632d616c676f726974686d732f6c6963656e7365)](https://packagist.org/packages/voku/phonetic-algorithms)

Phonetic-Algorithms
===================

[](#phonetic-algorithms)

Description
-----------

[](#description)

- "PhoneticGerman"-Class:

A phonetic algorithms for the german language via "Kölner Phonetik": [en.wikipedia.org/wiki/Cologne\_phonetics](https://en.wikipedia.org/wiki/Cologne_phonetics)

- "PhoneticEnglish"-Class:

A phonetic algorithms for the english language via "metaphone": [en.wikipedia.org/wiki/Metaphone](https://en.wikipedia.org/wiki/Metaphone)

- "PhoneticFrench"-Class:

A phonetic algorithms for the french language via "SOUNDEX FR": [www.roudoudou.com/phonetic.php](http://www.roudoudou.com/phonetic.php)

- [Installation](#installation)
- [Usage](#usage)
- [History](#history)

Installation
------------

[](#installation)

1. Install and use [composer](https://getcomposer.org/doc/00-intro.md) in your project.
2. Require this package via composer:

```
composer require voku/phonetic-algorithms
```

Usage
-----

[](#usage)

You the "phonetic\_word"-method if you need a fuzzy-search for single words e.g. last-names or product-names.

```
use voku\helper\Phonetic;

$words = array(
  'Moelleken',
  'Mölleken',
  'Möleken',
  'Moeleken',
  'Moellecken',
  'Möllecken',
  'Mölecken',
);
$phonetic = new Phonetic('de');
foreach ($words as $word) {
  $phonetic->phonetic_word($string); // '6546'
}
```

You can use the "phonetic\_sentence"-method to process sentences.

```
use voku\helper\Phonetic;

$string = 'Ein Satz mit vielen Wortern';
$phonetic = new Phonetic('de');
$phonetic->phonetic_sentence($string, (bool) false, (false|int) false);

// [
//   'Ein' => '06',
//   'Satz' => '8',
//   'mit' => '62',
//   'vielen' => '356',
//   'Wortern' => '37276'
// ]
```

You can use the "phonetic\_matches"-method to search for words in an array of words.

```
use voku\helper\Phonetic;

$phonetic = new Phonetic('de');

$tests = array(
    'Moelleken',  // '6546',
    'Mölleken',   // '6546',
    'Möleken',    // '6546',
    'Moeleken',   // '6546',
    'oder',       // '027',
    'was',        // '38',
    'Moellecken', // '6546',
    'Möllecken',  // '6546',
    'Mölecken',   // '6546',
);

$phonetic->phonetic_matches('Moelleken', $tests);

// [
//   'Moelleken'  => 'Moelleken',
//   'Mölleken'   => 'Moelleken',
//   'Möleken'    => 'Moelleken',
//   'Moeleken'   => 'Moelleken',
//   'Moellecken' => 'Moelleken',
//   'Möllecken'  => 'Moelleken',
//   'Mölecken'   => 'Moelleken',
// ]
```

History
-------

[](#history)

See [CHANGELOG](CHANGELOG.md) for the full history of changes.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~250 days

Recently: every ~380 days

Total

8

Last Release

1589d ago

Major Versions

1.0.0 → 2.0.02017-04-05

2.1.0 → 3.0.02017-11-13

3.0.2 → 4.0.02017-12-23

4.0.0 → 5.0.02022-01-10

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

3.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6456fe693db197c458272cb758bf78958bc7d3e787ccd59db4bf3cf41654316a?d=identicon)[voku](/maintainers/voku)

---

Top Contributors

[![voku](https://avatars.githubusercontent.com/u/264695?v=4)](https://github.com/voku "voku (43 commits)")

---

Tags

algorithmfuzzy-searchhomophonemetaphonephoneticphpAlgorithmphoneticmetaphoneKölner PhonetikHomophone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/voku-phonetic-algorithms/health.svg)

```
[![Health](https://phpackages.com/badges/voku-phonetic-algorithms/health.svg)](https://phpackages.com/packages/voku-phonetic-algorithms)
```

###  Alternatives

[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.4M28](/packages/rubix-ml)[donatello-za/rake-php-plus

Yet another PHP implementation of the Rapid Automatic Keyword Extraction algorithm (RAKE).

271865.1k10](/packages/donatello-za-rake-php-plus)[tga/simhash-php

SimHash similarities algorithm implementation for PHP 5.3

15243.5k1](/packages/tga-simhash-php)[fisharebest/algorithm

Implementation of standard algorithms in PHP.

7192.7k1](/packages/fisharebest-algorithm)[edgaras/strsim

Collection of string similarity and distance algorithms in PHP including Levenshtein, Damerau-Levenshtein, Jaro-Winkler, and more

2423.0k](/packages/edgaras-strsim)[uestla/simplex-calculator

Simple tool for linear programming problems solving

427.6k](/packages/uestla-simplex-calculator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
