bodawpaya/fontlib

Myanmar Font Tools Collection


Keywords
converter, unicode, detector, zawgyi, myanmar-font
License
MIT

Documentation

FontLib

Latest Stable Version Build Status Total Downloads License

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

Build status: Build Status

Is it 100% correct?

No, check the following test results(with 3000+ words from ornagai dictionary).

Test Result

Credits

License

FontLib is released under the MIT License. See License File file for more details.