Skip to content

LoginovIlya/words-to-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Words to numbers

Installation

$ composer require loginovilya/words-to-numbers

Usage

<?php

require "vendor/autoload.php";

use WordsToNumbers\WordsToNumbers;

$numberTransformer = WordsToNumbers::getWordsTransformer('ru');

$numberTransformer->toNumbers('два'); // 2
$numberTransformer->toNumbers('девятнадцать'); // 19