e64f/money2text

Convertor Money to Text

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/e64f/money2text

v1.3 2021-08-09 16:23 UTC

This package is auto-updated.

Last update: 2025-12-10 02:00:09 UTC


README

Convertor Money to Text (russian).

Supports work with currencies - RUR, USD, EUR, KZT, UAH.

Supports numbers less than a trillion (1 000 000 000.00).

Installation

Install with Composer;

composer require e64f/money2text

Example

<?php

require_once __DIR__ . '/vendor/autoload.php';

use e64f\money2text\Money2Text;

$money2text = new Money2Text();
$money2text->setCurrency('RUR');
$summ = 456789.45;
$text = $money2text->getText($summ);

echo $text;

Print

Четыреста пятьдесят шесть тысяч семьсот восемьдесят девять рублей сорок пять копеек