meepozzza/cyrillic-currency-converter
最新稳定版本:v1.0.0
Composer 安装命令:
composer require meepozzza/cyrillic-currency-converter
包简介
Package for converting floating point currency to Cyrillic word format.
README 文档
README
Basic converter of floating point numbers to Cyrillic sentences. Rubles and kopecks are supported.
Getting started
<?php require 'vendor/autoload.php'; $converter = new MeepozZza\CyrillicCurrencyConverter\Converter(); echo $converter->convertNumberToString('1234.56'); // will print something like 'одна тысяча двести рублей тридцать четыре рубля пятьдесят шесть копеек $converter = new MeepozZza\CyrillicCurrencyConverter\Converter(true); echo $converter->convertNumberToString('1234.56'); // will print something like 'одна тысяча двести рублей тридцать четыре рубля 56 копеек
Why the package was created
- At the moment there is no package that correctly outputs floating point numbers to Cyrillic
Requirements
- PHP version 8.0 or later
Installation
composer require meepozzza/cyrillic-currency-converter
Usage
- Use variable $keepRemainderAsNumber in __construct for keep remainder as number
- Call convertNumberToString method of Converter class
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-21