All Projects → tintnaingwinn → kuu-pyaung

tintnaingwinn / kuu-pyaung

Licence: MIT license
Laravel package to convert files and database from zawgyi to unicode.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to kuu-pyaung

Font Awesome Php
A PHP library for Font Awesome 4.7.
Stars: ✭ 47 (+261.54%)
Mutual labels:  unicode, font
attic
A collection of personal tiny tools - mirror of https://gitlab.com/hydrargyrum/attic
Stars: ✭ 17 (+30.77%)
Mutual labels:  unicode, font
Last Resort Font
Last Resort Font
Stars: ✭ 462 (+3453.85%)
Mutual labels:  unicode, font
Open Relay
Free and open source fonts from Kreative Software
Stars: ✭ 48 (+269.23%)
Mutual labels:  unicode, font
Glyphhanger
Your web font utility belt. It can subset web fonts. It can find unicode-ranges for you automatically. It makes julienne fries.
Stars: ✭ 1,099 (+8353.85%)
Mutual labels:  unicode, font
Open Arrow
Open Arrow is an open-source font that contains 112 arrow symbols from U+2190 to U+21ff
Stars: ✭ 89 (+584.62%)
Mutual labels:  unicode, font
Ofxfontstash
Easy (and fast) unicode string rendering addon for OpenFrameworks. FontStash is made by Andreas Krinke and Mikko Mononen
Stars: ✭ 84 (+546.15%)
Mutual labels:  unicode, font
glyphhanger
Your web font utility belt. It can subset web fonts. It can find unicode-ranges for you automatically. It makes julienne fries.
Stars: ✭ 422 (+3146.15%)
Mutual labels:  unicode, font
tk-fangsong-font
剔骨仿宋: Experimental Fang Song style Chinese font
Stars: ✭ 93 (+615.38%)
Mutual labels:  font
ModernUI
Modern desktop framework from low-level 3D graphics API to high-level view model, for development of 2D/3D rendering software or game engine, with internationalization support and many new technologies.
Stars: ✭ 168 (+1192.31%)
Mutual labels:  font
farro
Farro is an artsy, four-weighted, display typeface that has a peculiar personality flowing through its European humanist silhouette.
Stars: ✭ 26 (+100%)
Mutual labels:  font
characters
A package for characters represented as unicode extended grapheme clusters
Stars: ✭ 54 (+315.38%)
Mutual labels:  unicode
unihandecode
unihandecode is a transliteration library to convert all characters/words in Unicode into ASCII alphabet that aware with Language preference priorities
Stars: ✭ 71 (+446.15%)
Mutual labels:  unicode
brass mono
Retro monospaced font inspired by 70's design.
Stars: ✭ 58 (+346.15%)
Mutual labels:  font
symbols
Transform text into mathematical alphanumeric 𝗌𝗒𝗆𝖻𝗈𝗅𝗌.
Stars: ✭ 22 (+69.23%)
Mutual labels:  unicode
icu-swift
Swift APIs for ICU
Stars: ✭ 23 (+76.92%)
Mutual labels:  unicode
characteristics
Character info under different encodings
Stars: ✭ 25 (+92.31%)
Mutual labels:  unicode
charcod.es
Small webpage for finding the odd unicode char code.
Stars: ✭ 18 (+38.46%)
Mutual labels:  unicode
MaterialDesign-Font
Distribution Repo for the TTF font
Stars: ✭ 102 (+684.62%)
Mutual labels:  font
unicode-programming
Unicode programming examples
Stars: ✭ 33 (+153.85%)
Mutual labels:  unicode

Convert resources files and database from zawgyi to unicode for Laravel apps

Latest Version on Packagist Laravel 8.x Laravel 7.x Laravel 6.x Laravel 5.x License

Kuu Pyaung Package converts resources files and databases from zawgyi to unicode.

If the context is unicode, don't worry about the conflict context, Kuu Pyaung hasn't converted unicode context to unicode again.

Requirements

version-1.x

version-2.x

version-3.x

version-4.x

Laravel Version Compatibility

Laravel Package 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

Installation and usage

For Laravel 8.x

composer require tintnaingwin/kuu-pyaung:"~4.0"

For Laravel 5.8|6.x|7.x

composer require tintnaingwin/kuu-pyaung:"~3.0"

For Laravel 5.5|5.6|5.7

composer require tintnaingwin/kuu-pyaung:"~2.0"

For Laravel 5.2|5.3|5.4

composer require tintnaingwin/kuu-pyaung:"~1.0"

For laravel >=5.5 that's all. This package supports Laravel new Package Discovery.

If you are using Laravel < 5.5, you also need to add the service provider class to your project's config/app.php file:

Service Provider
Tintnaingwin\KuuPyaung\KuuPyaungServiceProvider::class,

You can publish the config-file with:

php artisan vendor:publish --provider="Tintnaingwin\KuuPyaung\KuuPyaungServiceProvider"

Artisan commands

You can convert your app by running:

php artisan kuupyaung:run

If you would like to convert only the files, run:

php artisan kuupyaung:run --only-files

If you would like to convert only the database, run:

php artisan kuupyaung:run --only-database

Configuration

Kuu Pyaung can be configured directly in /config/kuu-pyaung.php.

This is the contents of the published config file:

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' ]
    ]
    
];

Files Convert

This package convert only folder under the resource directories. You can determine which resource files will be convert.

    /*
     * These resource directories only will be convert.
     */
    'include_files' => [
        'views',
        'lang', // lang/my
    ],

Database Convert

Exclude Tables - Kuu Pyaung converts only string data types from the database. You can determine which tables will be excluded from the convert. In addition, if your table does not have primary key (id or UUID), this table will not be converted.

    /*
     * These database tables will be excluded from the convert.
     */
    'exclude_tables' => [
            'password_resets',
            'migrations',
            'failed_jobs',
            'telescope_entries',
            'telescope_entries_tags',
            'telescope_monitoring',
    ],

Exclude Columns - If the value of some columns is maybe zawgyi filenames or file paths. you can add these columns in the exclude_table_columns at the config file.

    /*
     * 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' ]
    ]
    */

We highly recommend that you should use maintenance mode when you convert the database tables in production server.

Supported databases

  • MySQL
  • PostgreSQL
  • SQLite

Troubleshoot

You can convert with kuu-pyaung in the following situations,

The first thing if you are using the laravel <5.2
The second thing you don't want to install current project.

  • First, create the new laravel project
  • Make sure to join the database.
  • Make sure to install the kuu-pyaung
  • After that you can convert with kuu-pyaung

Testing

Run the tests with:

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].