ozgeris/kznumspell

Package for spelling number in kazakh language

0.1 2017-11-16 14:37 UTC

This package is not auto-updated.

Last update: 2025-06-22 08:54:37 UTC


README

This PHP library can be used to spell number into text in kazakh language. Typical usage scenarion is bank invoices Maximum supported up to 10^21

Usage

  1. Install using composer composer require ozgeris/kznumspell and run dump autoload
  2. Include KzNumSpell.php directly

PHP version >= 7.0

Example

use KzNumSpell\KzNumSpell;

$speller = new KzNumSpell;
$speller->spell(10456);
$speller->spell('123 456 789');

Running tests

Library uses phpunit for testing. Tests are in folder tests

phpunit tests\Spelltest.php