PHP code example of stevenay / myanfont

1. Go to this page and download the library: Download stevenay/myanfont 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/ */

    

stevenay / myanfont example snippets


composer dump-autoload

if (! function_exists('fontDetect')) {  
	function fontDetect(string $content, $default = "zawgyi")  
	{
		return SteveNay\MyanFont\MyanFont::fontDetect($content, $default);  
	}
}  
  
if (! function_exists('isMyanmarSar')) {  
	function isMyanmarSar(string $content)  
	{
		return SteveNay\MyanFont\MyanFont::isMyanmarSar($content);  
	}
}  
  
if (! function_exists('uni2zg')) {  
	function uni2zg(string $content)  
	{
		return SteveNay\MyanFont\MyanFont::uni2zg($content);  
	}
}  
  
if (! function_exists('zg2uni')) {  
	function zg2uni(string $content)  
	{
		return SteveNay\MyanFont\MyanFont::zg2uni($content);  
	}
}