peterkahl/czech-name-declension

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

v2.2.1 2019-10-12 05:42 UTC

README

Downloads License If this project has business value for you then don't hesitate to support me with a small donation.

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

echo CzechNameDeclension::getVocative('pejsek');  # pejsku

echo CzechNameDeclension::getVocative('babička'); # babičko

echo CzechNameDeclension::getVocative('miláček'); # miláčku