Skip to content

Earpengai/ConvertToKhmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The PHP library for convert number to Khmer word.

PHP Composer

Package help you to convert number to khmer word.

Requirements

  • PHP 7.0 or higher

Installation

Official installation method is via composer and its packagist package ConvertToKhmer.

composer require earpengai/convert-to-khmer

Usage

The simplest using of the library would be as follows: Firstly, you can import or instance class

use ConvertToKhmer\NumberToKhmerWords;

For example:

$NumberToKhmerWord = new NumberToKhmerWords();

$NumberToKhmerWord->numberToWord(123456789); //មួយរយម្ភៃបីលានបួនសែនប្រាំម៉ឺនប្រាំមួយពាន់ប្រាំពីររយប៉ែតសិបប្រាំបួន
$NumberToKhmerWord->accNumberToWord(123456789); //មួយរយម្ភៃបីលានបួនរយហាសិបប្រាំមួយពាន់ប្រាំពីររយប៉ែតសិបប្រាំបួន
NumberToKhmerWords::instance()->numberToWord(987654321); //ប្រាំបួនរយប៉ែតសិបប្រាំពីរលានប្រាំមួយសែនប្រាំម៉ឺនបួនពាន់បីរយម្ភៃមួយ
NumberToKhmerWords::instance()->accNumberToWord(987654321); //ប្រាំបួនរយប៉ែតសិបប្រាំពីរលានប្រាំមួយរយហាសិបបួនពាន់បីរយម្ភៃមួយ

License

This package operates under the MIT License (MIT). See the LICENSE file for details.

About

The PHP library for convert number to Khmer word

Resources

License

Stars

Watchers

Forks

Languages