PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Peter Kahl   Czech Name Declension   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Czech Name Declension
Convert Czech nouns and person names
Author: By
Last change: Downloads badge
Date: 4 years ago
Size: 1,145 bytes
 

Contents

Class file image Download

Czech Name Declension

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