https://github.com/oblakstudio/number-serbianisation
Stringifes numbers to Serbian language
https://github.com/oblakstudio/number-serbianisation
converter number serbian-language stringifier
Last synced: about 1 month ago
JSON representation
Stringifes numbers to Serbian language
- Host: GitHub
- URL: https://github.com/oblakstudio/number-serbianisation
- Owner: oblakstudio
- License: mit
- Created: 2019-07-27T12:03:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T03:16:00.000Z (about 1 year ago)
- Last Synced: 2025-03-29T00:48:15.849Z (about 1 month ago)
- Topics: converter, number, serbian-language, stringifier
- Language: PHP
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# oblak/number-serbianisation [](https://github.com/oblakstudio/number-serbianisation/blob/master/README.md) [](https://github.com/oblakstudio/number-serbianisation/blob/master/README.sr.md)
[](https://packagist.org/packages/oblak/number-serbianisation)

[](https://codecov.io/gh/oblakstudio/number-serbianisation)
[](https://github.com/semantic-release/semantic-release)## Installation
You can install the package via composer:
```bash
composer require oblak/number-serbianisation
```## Usage
```php
toWordString(1000); // jedna hiljada
echo $srn->useAccusative()->toWordString(1000); // hiljaduecho $srn->useScale(NumberScale::Short)->toWordString(1000000000); // jedan bilion
echo $srn->useScale(NumberScale::Long)->toWordString(1000000000); // jedna milijarda
echo $srn->useAccusative()->toWordString(1000000000); // milijardu
```