PHPackages                             frantzmiccoli/phphoneticindexing - 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. [Search &amp; Filtering](/categories/search)
4. /
5. frantzmiccoli/phphoneticindexing

ActiveLibrary[Search &amp; Filtering](/categories/search)

frantzmiccoli/phphoneticindexing
================================

Phonetic indexing for PHP, uses the standard library for English, Cologne phonetics for German and a custom algorithm for French

1.0.2-stable(5y ago)010MITPHP

Since Aug 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/frantzmiccoli/PHPhoneticindexing)[ Packagist](https://packagist.org/packages/frantzmiccoli/phphoneticindexing)[ RSS](/packages/frantzmiccoli-phphoneticindexing/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/ae0cbb9781a591b8e602d827d66f4ad178fe2a6822c2fbf14127f2274ca93f1c/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6672616e747a6d6963636f6c692f504850686f6e65746963696e646578696e672e706e67)](http://travis-ci.org/frantzmiccoli/PHPhoneticindexing)

Scope
=====

[](#scope)

We try to provide different languages phonetic indexing methods.

- English: uses the PHP Standard Library `soundex()`
- German: uses a custom implementation of the Cologne phonetic indexing algorithm. [https://en.wikipedia.org/wiki/Cologne\_phonetics](https://en.wikipedia.org/wiki/Cologne_phonetics)
- French: uses a custom algorithm (see below)

Installation
============

[](#installation)

```
composer require frantzmiccoli/phphoneticindexing

```

Usage
=====

[](#usage)

```
use PhPhoneticIndexing\GetPhoneticIndex;

$getPhoneticIndex = new GetPhoneticIndex();

var_dump($getPhoneticIndex->getPhoneticIndex('carabine', 'fr')); // karabyn

```

Please note that if you wish to support new languages, those can be added using `$getPhoneticIndex->addLanguage()`.

French implementation
=====================

[](#french-implementation)

Root classPatternReplacementExamplez\[aeiouy\]s\[aeiouy\]zhasard3è3très3é3était3ai3était3e\[rtx\]$3est rentrer /3^est$3est rentrer /3e\[rt\] following letter kept3errance /3es\[^$\] following letter kep3brest /3ez$3est rentrer /oooorangeoauoaubagneaaaabracadraaoi\[e\]aoiebbbabolitionbpbproblème1`[iu][nm]([^mnaeiouy123])`1obtint emprunt1em*ent*1lentement-ent$-vouent1en1enfant1em1emprunter1an1enfantffffenêtrefphfsophismefvvsavoureree\[^$\]ef**e**nêtreeeueeuxeo?eu?eoeuvre oedême2o\[nm\]\[^nmaeiouy123\]2attention ombrejjjjugerjg\[ei\]jjuger girondejchjchercherjshjsherpayillibrilleryiicessionyyicessionssssérieuxsc\[ei\]scessionsçsçakg\[^ei\]kgué gardienkkkkaratékckcaramelkqukqueuouuoublieuuuubuesque-\[depqrstwxz\]$-camp-e$-oedême aiment-h-habituer1. Remove numbers and work in lower case.
2. Proceed with substitution in the given order.
3. Remove duplicates
4. Remove `-`
5. If wished remove `aeiouy123`

Side note
=========

[](#side-note)

Part of this was developed during a live programming session. Unfortunately the quality is awful, but the links are here:

- Live Programming: Phonetic indexing (1/4) - project motivation and existing solutions overview
- Live Programming: Phonetic indexing (2/4) - existing PHP code to support German
- Live Programming: Phonetic indexing (3/4) - adapting to French language, theory and tests
- Live Programming: Phonetic indexing (4/4) - French language implementation

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~0 days

Total

3

Last Release

2081d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d33f9ef47440efb3d4fe331da12f5cff401e0303d4fa21a27fd878aa5a5040d8?d=identicon)[frantzmiccoli](/maintainers/frantzmiccoli)

---

Top Contributors

[![frantzmiccoli](https://avatars.githubusercontent.com/u/2973447?v=4)](https://github.com/frantzmiccoli "frantzmiccoli (12 commits)")

---

Tags

searchindexindexingphoneticsoundex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/frantzmiccoli-phphoneticindexing/health.svg)

```
[![Health](https://phpackages.com/badges/frantzmiccoli-phphoneticindexing/health.svg)](https://phpackages.com/packages/frantzmiccoli-phphoneticindexing)
```

###  Alternatives

[terminal42/escargot

A web crawler or spider library based on Symfony components

581.4M3](/packages/terminal42-escargot)[floriansemm/solr-bundle

Symfony Solr integration bundle

12280.2k2](/packages/floriansemm-solr-bundle)[opensearchserver/opensearchserver

PHP library for OpenSearchServer: professionnal search engine, crawlers (web, file, database), REST APIs, .... This library uses OpenSearchServer's V2 API.

5267.5k](/packages/opensearchserver-opensearchserver)[ripaclub/sphinxsearch

Sphinx Search library provides SphinxQL indexing and searching features

6232.2k3](/packages/ripaclub-sphinxsearch)[johannschopplich/kirby-algolia-docsearch

Algolia DocSearch plugin for Kirby CMS

262.1k](/packages/johannschopplich-kirby-algolia-docsearch)[mediamonks/crawler

Crawl your own website with various clients for SEO and indexing purposes.

211.1k1](/packages/mediamonks-crawler)

PHPackages © 2026

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