earpengai / convert-to-khmer
Convert Number to Khmer language.
v1.0.0
2022-04-28 07:30 UTC
Requires
- php: >=7.1.3
This package is auto-updated.
Last update: 2025-02-28 14:27:04 UTC
README
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.