PHP code example of hctilg / number-to-persian-text
1. Go to this page and download the library: Download hctilg/number-to-persian-text 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/ */
hctilg / number-to-persian-text example snippets
// checking the exists Library.
if (!file_exists("number-to-text.php")) {
copy('https://raw.githubusercontent.com/hctilg/number-to-text/main/number-to-text.php', 'number-to-text.php');
}
// bash
php number-to-text.php
bash
php -S localhost:6040
http://localhost:6040/test.php
bash
php test.php