Kuu Pyaung 패키지는 리소스 파일과 데이터베이스를 Zawgyi에서 Unicode로 변환합니다.
컨텍스트가 유니 코드 인 경우 갈등 컨텍스트에 대해 걱정하지 마십시오. Kuu Pyaung은 유니 코드 컨텍스트를 유니 코드로 다시 변환하지 않았습니다.
| 라 라벨 | 패키지 | 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,다음과 함께 구성 파일을 게시 할 수 있습니다.
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 filename 또는 파일 경로 인 경우. 구성 파일에서 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
두 번째는 현재 프로젝트를 설치하고 싶지 않습니다.
테스트를 실행합니다.
composer test최근에 변경된 내용에 대한 자세한 내용은 ChangElog를 참조하십시오.
자세한 내용은 기여를 참조하십시오.
자세한 내용은 기여를 참조하십시오.
보안 취약점을보고하는 방법에 대한 보안 정책을 검토하십시오.
MIT 라이센스 (MIT). 자세한 내용은 라이센스 파일을 참조하십시오.