php-junior / zawuni
Laravel Zawgyi Unicode
v1.2.1
2017-08-05 12:38 UTC
Requires
- php: >=5.6.4
This package is auto-updated.
Last update: 2024-09-07 17:13:43 UTC
README
安装
使用 composer 安装
composer require php-junior/zawuni
安装后,在你的项目 config/app.php 文件中,将以下条目从 providers 数组中替换掉
PhpJunior\Zawuni\ZawuniServiceProvider::class,
并且
php artisan vendor:publish --provider="PhpJunior\Zawuni\ZawuniServiceProvider"
这是发布配置文件的内容
return [ /* |-------------------------------------------------------------------------- | Font Configuration |-------------------------------------------------------------------------- | | Available Fonts: "zawgyi", "myanmar3" ,"yunghkio","masterpiece","padauk" | "monanonta","ourunicode","imon","mymyanmar","pyidaungsu" | */ // default : zawgyi 'font' => 'ourunicode', // define class name in input , textarea 'define_class' => false ];
用法
在 <body>
前添加 {!! Zawuni::includeFiles() !!}
Zawuni::text($string); ( or ) zawuni($string);
鸣谢
许可证
MIT 许可证(MIT)。有关更多信息,请参阅许可证文件。