tintnaingwin/myanfont

Laravel Zawgyi <=> Unicode Package

Downloads

9703

Stars

7

Version

v4.0.0

Laravel Zawgyi <=> Unicode Package

Latest Version on Packagist Laravel 11.x Total Downloads License

Requirements

version-4.*

version-3.*

version-2.*

Unsupported since 27-4-2024

version-1.*

Unsupported since 27-4-2024

version-0.*

Unsupported since 27-4-2024

Read the extensive documentation on version 0.x and on version 1.x.

Installation

You can install this package via composer using this command:

composer require tintnaingwin/myanfont:"~4.0"

The package will automatically register itself.

Usage

Using the facade

  • Unicode to Zawgyi
MyanFont::uni2zg('ဥုံတလဲလဲဖွတလဲလဲ'); // ဥဳံတလဲလဲဖြတလဲလဲ
MyanFont::uni2zg('ဥုံတလဲလဲဖွတလဲလဲ'); // ဥဳံတလဲလဲဖြတလဲလဲ
  • Zawgyi to Unicode
MyanFont::zg2uni('ဥဳံတလဲလဲဖြတလဲလဲ'); // ဥုံတလဲလဲဖွတလဲလဲ
MyanFont::zg2uni('ဥဳံတလဲလဲဖြတလဲလဲ'); // ဥုံတလဲလဲဖွတလဲလဲ
  • Detect Font
// zawgyi
MyanFont::isZgOrUni('ခ်ယ္ရီ'); // output - zawgyi

// unicode
MyanFont::isZgOrUni('ချယ်ရီ'); // output - unicode

Using with Helpers

  • Unicode to Zawgyi
uni2zg('ဥုံတလဲလဲဖွတလဲလဲ'); // ဥဳံတလဲလဲဖြတလဲလဲ
  • Zawgyi to Unicode
zg2uni('ဥဳံတလဲလဲဖြတလဲလဲ'); // ဥုံတလဲလဲဖွတလဲလဲ
  • Detect Font
isZgOrUni('ခ်ယ္ရီ'); // output - zawgyi

Testing

You can run the tests with:

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

tintnaingwinn

Author

tintnaingwinn