2017 © Pedro Peláez
 

symfony-bundle lithuanian-names-declension

Lithuanian names declension bundle.

image

jokubasr/lithuanian-names-declension

Lithuanian names declension bundle.

  • Monday, October 5, 2015
  • by JokubasR
  • Repository
  • 1 Watchers
  • 1 Stars
  • 125 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

LithuanianNamesDeclensionBundle

Build Status, (*1)

The LithuanianNamesDeclensionBundle bundle allows you to inflect Lithuanian names from nominative case to any other., (*2)

Installation

Require the jokubasr/lithuanian-names-declension package in your composer.json and update your dependencies., (*3)

$ composer require jokubasr/lithuanian-names-declension

Register the bundle in app/AppKernel.php:, (*4)

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new JokubasR\Bundle\LithuanianNamesDeclensionBundle\JokubasRLithuanianNamesDeclensionBundle(),
    );
}

Usage

You can use declension service either by injecting it or using it in your twig templates., (*5)

<?php
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);
{{ "Jokūbas"|ablative }}
{{ "Jokūbas"|inflect("ablative") }}
{{ "Jokūbas"|case('ablative') }}

{{ getVocative("Jokūbas") }}
{{ getInflected("Jokūbas") }} {# vocative is the default case #}
{{ getInflected("Jokūbas", "ablative") }}

Available twig filters: * inflect- accepts case as a parameter (genitive, dative, accusative, ablative, locative, vocative) * case- alias to inflect * genitive * dative * accusative * ablative * locative * vocative, (*6)

Available twig functions: * getInflected - accepts case as a second parameter (genitive, dative, accusative, ablative, locative, vocative) * getGenitive * getDative * getAccusative * getAblative * getLocative * getVocative, (*7)

Author

Jokūbas Ramanauskas, (*8)

Original library author

Dainius Kaupaitis, 2011, (*9)

Contributors

..., (*10)

The Versions

05/10 2015

dev-master

9999999-dev https://github.com/JokubasR/lithuanianNamesDeclensionBundle

Lithuanian names declension bundle.

  Sources   Download

MIT

The Requires

 

by Jokūbas Ramanauskas

bundle case names declension lithuanian

05/10 2015

v1.1

1.1.0.0 https://github.com/JokubasR/lithuanianNamesDeclensionBundle

Lithuanian names declension bundle.

  Sources   Download

MIT

The Requires

 

by Jokūbas Ramanauskas

bundle case names declension lithuanian

05/10 2015

v1.0

1.0.0.0 https://github.com/JokubasR/lithuanianNamesDeclensionBundle

Lithuanian names declension bundle.

  Sources   Download

MIT

The Requires

 

by Jokūbas Ramanauskas

bundle case names declension lithuanian

04/10 2015

1.01

1.01.0.0 https://github.com/JokubasR/lithuanianNamesDeclensionBundle

Lithuanian names declension bundle.

  Sources   Download

by Jokūbas Ramanauskas

lithuanian names declension case bundle

04/10 2015

1.0

1.0.0.0 https://github.com/JokubasR/lithuanianNamesDeclensionBundle

Lithuanian names declension bundle.

  Sources   Download

The Requires

 

by Jokūbas Ramanauskas

bundle case names declension lithuanian lithuanian names declension case bundle

04/10 2015

0.9

0.9.0.0

  Sources   Download