1. Go to this page and download the library: Download laravel-myanmar-tools/font 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/ */
laravel-myanmar-tools / font example snippets
use LaravelMyanmarTools\Font\Font;
$font = new Font;
$font->isUnicodeFont('မြန်မာပြည်'); // return true
use LaravelMyanmarTools\Font\Font;
$font = new Font;
$font->isZawgyiFont('ျမန္မာျပည္'); // return true
use LaravelMyanmarTools\Font\Font;
$font = new Font;
$font->detectMyanmarFont('မြန်မာပြည်'); // return "unicode"
$font->detectMyanmarFont('ျမန္မာျပည္'); // return "zawgyi"
use LaravelMyanmarTools\Font\Font;
$font = new Font;
$font->zgToUni('ျမန္မာျပည္'); // return "မြန်မာပြည်"
use LaravelMyanmarTools\Font\Font;
$font = new Font;
$font->zgToUni('မြန်မာပြည်'); // return "ျမန္မာျပည္"
use LaravelMyanmarTools\Font\Font;
$font = new Font;
$font::macro('isNumber', function(string $str) {
return is_numeric($str);
});
$font->isNumber('12345'); // return true
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.