FontLib
Myanmar Font Tools Collection
System Requirements
You need:
- PHP 5.3+
To use the library.
Installation
The recommended installation way is through Composer.
$ composer require bodawpaya/fontlib
Usage
<?php
require 'vendor/autoload.php';
use Bodawpaya\FontLib;
FontLib::isUnicode("ááŹááşááźáŽá¸áážááş"); // true
FontLib::isUnicode("ááŹáášáááŽá¸áá˝ááš"); // false
FontLib::isZawgyi("ááŹááşááźáŽá¸áážááş"); // false
FontLib::isZawgyi("ááŹáášáááŽá¸áá˝ááš"); // true
Testing
There is a PHPUnit test script in the tests folder.
To run the phpunit tests, run the following command from the project folder.
$ ./vendor/bin/phpunit
Is it 100% correct?
No, check the following test results(with 3000+ words from ornagai dictionary).
Credits
License
FontLib is released under the MIT License. See License File file for more details.