Kuu Pyaung软件包将资源文件和数据库从Zawgyi转换为Unicode。
如果上下文是Unicode,请不要担心冲突上下文,Kuu Pyaung没有再次将Unicode上下文转换为Unicode。
| 拉拉维尔 | 包裹 | php |
|---|---|---|
| 5.2.x | 1.x | > = 5.6.4 |
| 5.3.x | 1.x | > = 5.6.4 |
| 5.4.x | 1.x | > = 5.6.4 |
| 5.5.x | 2.x | > = 7.0.0 |
| 5.6.x | 2.x | > = 7.1.3 |
| 5.7.x | 2.x | > = 7.1.3 |
| 5.8.x | 3.x | > = 7.2.0 |
| 6.x | 3.x | > = 7.2.0 |
| 7.x | 3.x | > = 7.2.5 |
| 8.x | 4.x | > = 7.4 |
| 9.x | 5.x | > = 8.1 |
| 10.x | 5.x | > = 8.1 |
对于Laravel 8.x
composer require tintnaingwin/kuu-pyaung: " ~4.0 "对于Laravel 5.8 | 6.x | 7.x
composer require tintnaingwin/kuu-pyaung: " ~3.0 "对于Laravel 5.5 | 5.6 | 5.7
composer require tintnaingwin/kuu-pyaung: " ~2.0 "对于Laravel 5.2 | 5.3 | 5.4
composer require tintnaingwin/kuu-pyaung: " ~1.0 "对于Laravel> = 5.5就是这样。该软件包支持Laravel新软件包发现。
如果您使用的是Laravel <5.5,则还需要将服务提供商类添加到项目的config/app.php文件中:
Tintnaingwin KuuPyaung KuuPyaungServiceProvider::class,您可以使用以下方式发布配置文件
php artisan vendor:publish --provider= " TintnaingwinKuuPyaungKuuPyaungServiceProvider " 您可以通过运行转换应用程序:
php artisan kuupyaung:run如果您只想转换文件,请运行:
php artisan kuupyaung:run --only-files如果您只想转换数据库,请运行:
php artisan kuupyaung:run --only-database可以在 /config/kuu-pyaung.php中直接配置kuu pyaung。
这是已发布的配置文件的内容:
return [
/*
* These resource directories only will be convert.
*/
' include_files ' => [
' views ' ,
' lang ' , // lang/my
],
/*
* These database tables will be excluded from the convert.
*/
' exclude_tables ' => [
' password_resets ' ,
' migrations ' ,
' failed_jobs ' ,
' telescope_entries ' ,
' telescope_entries_tags ' ,
' telescope_monitoring ' ,
],
/*
* These database table columns will be excluded from the convert.
*
* The value of the some columns may be filenames or you don't want to convert.
* Eg - 'table_name' => [ 'exclude_column', 'exclude_column' ]
*/
' exclude_table_columns ' => [
' users ' => [ ' profile_pic ' , ' file_path ' ],
' orders ' => [ ' invoice_path ' ]
]
];文件转换
此软件包在resource directories下仅转换文件夹。您可以确定将转换哪些资源文件。
/*
* These resource directories only will be convert.
*/
' include_files ' => [
' views ' ,
' lang ' , // lang/my
],数据库转换
排除表-Kuu pyaung仅从数据库中转换string数据类型。您可以确定将哪些表排除在转换之外。另外,如果您的表没有primary key (id or UUID) ,则将不会转换此表。
/*
* These database tables will be excluded from the convert.
*/
' exclude_tables ' => [
' password_resets ' ,
' migrations ' ,
' failed_jobs ' ,
' telescope_entries ' ,
' telescope_entries_tags ' ,
' telescope_monitoring ' ,
],排除列- 如果某些列的值是Zawgyi文件名或文件路径。您可以在配置文件中的dubl_table_columns中添加这些列。
/*
* These database table columns will be excluded from the convert.
*
* The value of the some columns may be filenames that you don't want to convert.
* Eg - 'table_name' => [ 'exclude_column', 'exclude_column' ]
*/
/*
'exclude_table_columns' => [
'users' => [ 'profile_pic', 'file_path' ],
'orders' => [ 'invoice_path' ]
]
*/我们强烈建议您在生产服务器中转换数据库表时使用维护模式。
您可以在以下情况下与kuu-pyaung进行转换,
如果您使用Laravel <5.2,则第一件事
您不想安装当前项目的第二件事。
运行测试:
composer test有关最近发生了变化的更多信息,请参见ChangElog。
请有关详细信息,请参阅贡献。
请有关详细信息,请参阅贡献。
请查看我们有关如何报告安全漏洞的安全政策。
麻省理工学院许可证(麻省理工学院)。请参阅许可证文件以获取更多信息。