Download the PHP package oblak/vocative without Composer
On this page you can find all versions of the php package oblak/vocative. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oblak/vocative
More information about oblak/vocative
Files in oblak/vocative
Package vocative
Short Description Transforms Serbian names from nominative case to vocative case
License MIT
Informations about the package vocative
Vocative 🗣️
Vocative inflector for Serbian names
[](https://packagist.org/packages/oblak/vocative)

This library allows you to effortlessly convert Serbian personal names to their correct vocative form.
Key Features
- Peer-reviewed - The library has been tested with almost all Serbian names, and reviewed by a team of linguists.
- Easy to use - The library is designed to be simple and intuitive, making it easy for developers of all skill levels to integrate into their projects.
- Lightweight - The library is small and efficient, ensuring that it won't slow down your application.
Installation
You can install the library via Composer:
Usage
Below is a simple example of how to use the library:
Basic Usage
With custom dictionary
Vocative
class depends on an exception dictionary to handle special cases. By default it uses the built-in BaseDictionary
class, but you can use your own by implementing the Dictionary
interface.
[!TIP] We provide a
NullDictionary
class that does not use any exceptions. This is useful for testing purposes.
Special thanks
As someone without deep expertise in Serbian linguistics, I am deeply grateful to the following individuals—without their guidance and support, this project could never have been completed:
- Svetlana Slijepčević Bjelivuk, PhD - For providing invaluable insights into intricacies of declination and conjugation of Serbian nouns and names and reviewing the data set.
- Nemanja Avramović - For his initial implementation of the
Vokativ
Library - Milana Bašić - For taking the time to gather and provide a list of Serbian names, both male and female.
All versions of vocative with dependencies
ext-mbstring Version *
oblak/transliterator Version ^3.0
symfony/polyfill-php84 Version ^1.31