PHP code example of mav / slovo
1. Go to this page and download the library: Download mav/slovo 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/ */
mav / slovo example snippets
\Mav\Slovo\Grammar::inclineNum($x,['цифра','цифры','цифр']);
$phonetics = new \Mav\Slovo\Phonetics();
$phonetics->metaphour('Насанов'); // НАСАНАФ
$phonetics->metaphour('Нассонов'); // НАСАНАФ
$phonetics->metaphour('Насонов'); // НАСАНАФ
$transliterator = new \Mav\Slovo\Transliterator();
$transliterator->trans('слово'); // slovo