PHP code example of haltuf / genderer
1. Go to this page and download the library: Download haltuf/genderer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
haltuf / genderer example snippets
use Haltuf\Genderer\Genderer ;
$g = new Genderer ;
// Dobrý den, Tomáši Vomáčko
echo "Dobrý den, " . $g->getVocative("Tomáš Vomáčka");
// 'm' = male, 'f' = female
echo "Pohlaví: " . $g->getGender("Tomáš Vomáčka");
// Dobrý den, MUDr. Tomáši Amosi Březino
echo "Dobrý den, " . $g->getVocative("MUDr. Tomáš Amos Březina");