tobytes/colophoneticphp

A class for retrieving the cologne phonetic (Kölner Phonetik) value of a string.

1.0.2 2018-02-18 15:24 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:57:10 UTC


README

Build Status Coverage Status

A class for retrieving the cologne phonetic (Kölner Phonetik) value of a string.

As described at http://de.wikipedia.org/wiki/Kölner_Phonetik
Based on Hans Joachim Postel: Die Kölner Phonetik. Ein Verfahren zur Identifizierung von Personennamen auf der Grundlage der Gestaltanalyse. in: IBM-Nachrichten, 19. Jahrgang, 1969, S. 925-931

This class is based on the cologne_phon function by Nikolas Zimmer (nicolas dot zimmer at einfachmarke.de) provided by him in a comment on php.net.

I modified the function to fix some errors and wrapped a class around it.

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

Put the following into your composer.json

{
    "require": {
        "tobytes/colophoneticphp": "~1.0"
    }
}