PHPackages                             kyawnaingtun/tounicode - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kyawnaingtun/tounicode

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kyawnaingtun/tounicode
======================

"Laravel zawgyi to unicode converter"

v4.0.1(1y ago)141.0k4MITPHPPHP ^5.6 || ^7.0 || ^8.0

Since Dec 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/KyawNaingTun/tounicode)[ Packagist](https://packagist.org/packages/kyawnaingtun/tounicode)[ Docs](https://github.com/KyawNaingTun/tounicode)[ RSS](/packages/kyawnaingtun-tounicode/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (9)Used By (0)

ToUnicode (Laravel Easy Converter)
==================================

[](#tounicode-laravel-easy-converter)

[![dev-master](https://camo.githubusercontent.com/12e250248f04c0622d811f568ee701f280692980c58db952b0b668452d8c5ee4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b7961776e61696e6774756e2f746f756e69636f64652e737667)](https://packagist.org/packages/kyawnaingtun/tounicode)[![Download](https://camo.githubusercontent.com/9536e6ffd2c69bea614558fa0415395345c431fdd7e11805aca309d6ffcf9197/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b7961776e61696e6774756e2f746f756e69636f64652e737667)](https://packagist.org/packages/kyawnaingtun/tounicode)

ဇော်ဂျီဖြင့် ရေးသားထားသော input values များကို unicode(ယူနီကုဒ်) အဖြစ် automatic ပြောင်းလဲပေးမည့် laravel package လေးတစ်ခုပါ။ Zawgyi/Unicode အား auto detect သိဖို့ရန်အတွက် ကူညီပေးသော ကွီးဖြိုးဇော်ထွန်း အား အထူးကျေးဇူးတင်ရှိပါသည်။ :D (မှတ်ချက်။။ converter ၏ unicode font သို့ ပြောင်းလဲမှုသည် ၁၀၀% မမှန်နိုင်ပါ။)

AngularJs (Front-End) အတွက်ဆိုရင်တော့ [ဒီမှာ](https://github.com/KyawNaingTun/ng-z2u-converter) လာယူပါ။

### composer နဲ့ဘယ်လိုယူရမလဲ?

[](#composer-နဲ့ဘယ်လိုယူရမလဲ)

`composer require kyawnaingtun/tounicode`

### Auto Convert on Save

[](#auto-convert-on-save)

အရင်ဆုံး ယခု converter ကိုအသုံးပြုမည့် Model file ထဲသို့သွားပါ။ အောက်ပါအတိုင်း `TounicodeTrait` ကို ထည့်ပါ၊ သင်ပြောင်းလဲလိုသော table field name ကို ဒီထဲမှာ `protected $tounicode=[]` ထည့်ပေးပါ။ အထက်ပါလုပ်ဆောင်ချက်အားလုံးပြီးပါက၊ ယခု Post model မှ title နှင့် content သည် user ထည့်လိုက်သည့် data မှန်သမျှ အားလုံးကို unicode auto ပြောင်းပေးသွားမည်ဖြစ်သည်။ ထို့အပြင်၊ ယခင်ကရှိနှင့်ပြီးသား Zawgyi content များကိုလည်း Unicode ပြောင်းပြီး ပြန်ထုတ်ပေးမှာ ဖြစ်ပါသည်။

```
# your-model-folder/post.php
namespace App;

use Illuminate\Database\Eloquent\Model;

use Kyawnaingtun\Tounicode\TounicodeTrait;

class Post extends Model
{
    use TounicodeTrait;

    protected $table = 'post';

    protected $fillable = ['title', 'content'];

    /**
     * These are the attributes to convert before saving.
     * To covert automatically from Non-Unicode to Unicode fonts
     * @var array
     */
    protected $tounicode = ['title','content'];

}
```

### Global Helper functions

[](#global-helper-functions)

သင်ပြောင်းလဲလိုသော value ကို အောက်ပါ function အသုံးပြုပြီး ပြောင်းလဲနိုင်သည်။

```
tounicode($value);//will convert to unicode value
```

ဖောင့်အမျိုးအစားသိချင်လျှင် အောက်ပါ function ဖြင့်စစ်နိုင်သည်။

```
/**
 * return string: uni, zg, mm, eng
 * uni = unicode
 * zg = zawgyi
 * mm = myanmar font
 * eng = english
 */
 checkFontType($value);
```

### Conclusion

[](#conclusion)

ဒီ laravel package လေးကို အသုံးပြုပြီးတော့ zawgyi နှင့် unicode ပြဿနာအား တစိတ်တပိုင်းဖြေရှင်းနိုင်လိမ့်မည်ဟု ယုံကြည်ပါတယ်။

Supported Versions
------------------

[](#supported-versions)

Laravel VersionSupported11.\*✅10.\*✅9.\*✅8.\*✅7.\*✅6.\*✅5.\*✅&lt; 5.0❌### Credits

[](#credits)

[Ko Phyo Zaw Tun (Future ICT Solution)](https://www.facebook.com/PhyoZawTun)[Ko Saturngod (Rabbit)](https://github.com/Rabbit-Converter/Rabbit)[Ko Satkyar (mmfont)](https://github.com/setkyar/mmfont)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~390 days

Recently: every ~531 days

Total

8

Last Release

711d ago

Major Versions

1.1 → v2.02018-08-02

v2.1 → v3.0.02020-02-11

v3.0.1 → v4.0.02024-05-29

PHP version history (3 changes)1.0PHP &gt;=5.6.4

v4.0.0PHP &gt;=8.0.0

v4.0.1PHP ^5.6 || ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/423d653baa0dc5475a556d684203a4cff2d876480cfab67a9f61eca31a78f319?d=identicon)[kyawnaingtun](/maintainers/kyawnaingtun)

---

Top Contributors

[![KyawNaingTun](https://avatars.githubusercontent.com/u/6079250?v=4)](https://github.com/KyawNaingTun "KyawNaingTun (42 commits)")

---

Tags

composerconvertlaravelmyanmartounicodeunicodezawgyi

### Embed Badge

![Health badge](/badges/kyawnaingtun-tounicode/health.svg)

```
[![Health](https://phpackages.com/badges/kyawnaingtun-tounicode/health.svg)](https://phpackages.com/packages/kyawnaingtun-tounicode)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
