2017 © Pedro Peláez
 

library vokativ

image

nebkam/vokativ

  • Thursday, August 11, 2016
  • by nebkam
  • Repository
  • 1 Watchers
  • 2 Stars
  • 238 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

DEPRECATED

This bundle is now a part of Avramovic/Vokativ, (*1)

VokativBundle

Symfony 2 Twig filter for addressing people according to Serbian grammar, (*2)

Usage:, (*3)

Pozdrav, {{ user.name|vokativ }}

..and if user.name is i.e. "Goran", it will output "Pozdrav, Gorane", (*4)

Features

  • useful for adressing people by their names, although it should work on all nouns in Serbian
  • you don't have to worry about the gender of the noun, it should handle male and female nouns correctly

Install via Composer

  1. require "nebkam/vokativ": "dev-master" in your composer.json
  2. update Composer dependencies
  3. add new Nebkam\Vokativ\NebkamVokativBundle() to $bundles in app/AppKernel.php

Keep in mind

  • the filter works on Serbian Latin input/output only
  • the filter does not try to correct your spelling (first letter uppercase on proper nouns and names etc.)

Credits

This is the unofficial port of http://vokativ.vokabular.org to Symfony 2, whose authors are: * Немања Аврамовић * Филип Милетић * Милош Вукотић, (*5)

Licence

http://creativecommons.org/licenses/by-sa/3.0/rs/, (*6)

The Versions

11/08 2016

dev-master

9999999-dev

  Sources   Download

The Requires

  • php >=5.3.3