1. Go to this page and download the library: Download rundiz/number library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rundiz / number example snippets
// For English z/Number/NumberEng.php';
// For English use NumberEng(), for Thai use NumberThai()
$number_text = new Rundiz\Number\NumberEng();
echo $number_text->convertNumber('101');
// the result should be:
// one hundred and one (for English)
// หนึ่งร้อยเอ็ด (for Thai)
$number_text = new Rundiz\Number\NumberThai();
echo $number_text->convertBaht('3.23');
// the result should be:
// สามบาทยี่สิบสามสตางค์