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 New Package Discoveryをサポートしています。
Laravel <5.5を使用している場合は、プロジェクトのconfig/app.phpファイルにサービスプロバイダークラスを追加する必要もあります。
Tintnaingwin KuuPyaung KuuPyaungServiceProvider::class,config-fileを次のように公開できます。
php artisan vendor:publish --provider= " TintnaingwinKuuPyaungKuuPyaungServiceProvider " 実行してアプリを変換できます。
php artisan kuupyaung:runファイルのみを変換したい場合は、実行してください。
php artisan kuupyaung:run --only-filesデータベースのみを変換したい場合は、実行してください。
php artisan kuupyaung:run --only-databaseKuu Pyaungは、/config /kuu-pyaung.phpで直接構成できます。
これは、公開されている構成ファイルの内容です。
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ファイル名またはファイルパスの場合。これらの列は、configファイルのexclude_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を使用している場合の最初のこと
現在のプロジェクトをインストールしたくない2番目のこと。
テストを実行します:
composer test最近変更されたものの詳細については、Changelogをご覧ください。
詳細については、寄付をご覧ください。
詳細については、寄付をご覧ください。
セキュリティの脆弱性を報告する方法についてのセキュリティポリシーを確認してください。
MITライセンス(MIT)。詳細については、ライセンスファイルをご覧ください。