PHP code example of jokubasr / lithuanian-names-declension
1. Go to this page and download the library: Download jokubasr/lithuanian-names-declension 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/ */
jokubasr / lithuanian-names-declension example snippets
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new JokubasR\Bundle\LithuanianNamesDeclensionBundle\JokubasRLithuanianNamesDeclensionBundle(),
);
}
use \JokubasR\Bundle\LithuanianNamesDeclensionBundle\Service\Declension;
// ...
/** @var Declension $declension */
$declension = $this->container->get('jokubasr.lithuanian_names_declension.declension');
$inflected = $declension->getInflected("Jokūbas", Declension::CASE_DATIVE);