peterkahl/czech-name-declension

Converts Czech nouns and persons' names to the requested declension.

v2.2 2017-05-21 09:31 UTC

README

Converts Czech nouns and persons' names to the requested declension.

Usage

use peterkahl\CzechNameDeclension\CzechNameDeclension;

echo CzechNameDeclension::getVocative('Antonín Dvořák');   # Antoníne Dvořáku

echo CzechNameDeclension::getVocative('Bedřich Smetana');  # Bedřichu Smetano

echo CzechNameDeclension::getVocative('Oldřiška');         # Oldřiško

# Also works with nouns
echo CzechNameDeclension::getVocative('hrad');             # hrade