PHPackages                             avram/vokativ - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. avram/vokativ

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

avram/vokativ
=============

Library used to convert first names from Serbian language into their vocative case.

v1.0.3(9y ago)1318.4k↓36.5%3MIT LicensePHPPHP &gt;=5.3.0

Since Mar 2Pushed 8y ago2 watchersCompare

[ Source](https://github.com/avramovic/Vokativ)[ Packagist](https://packagist.org/packages/avram/vokativ)[ RSS](/packages/avram-vokativ/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Vokativ
=======

[](#vokativ)

PHP class used to convert first names from Serbian language into their vocative case.

Introduction
------------

[](#introduction)

Serbian language uses vocative case in order to address a person, so when someone register to a site with name Filip it is okay to greet (address) them in English with "Hello Filip", but in Serbian it would be "Zdravo Filipe", and "Zdravo Filip" is not correct and really sounds strange. But vocative is not as simple as appending "e" to a name. It has a set of rules and this PHP class tries to apply those rules to all Serbian names. If it can't, it'll use the built-in dictionary (nominative =&gt; vocative) to find a correct form.

Note that it is not perfect and please notify me if you find any erroneously converted names. PRs are also welcome.

Intallation
-----------

[](#intallation)

Install using composer with:

`composer require avram/vokativ`

Or manually by cloning this repository:

`git clone https://github.com/avramovic/Vokativ.git`

Usage
-----

[](#usage)

### Native

[](#native)

```
