PHPackages                             hakhant/convert-mm - 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. hakhant/convert-mm

ActiveLibrary

hakhant/convert-mm
==================

Myanmar date and nrc number converter

v1.0.1(1y ago)254↓100%MITPHP

Since May 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hakhant21/convert-mm)[ Packagist](https://packagist.org/packages/hakhant/convert-mm)[ Docs](https://github.com/hakhant21/convert-mm.git)[ RSS](/packages/hakhant-convert-mm/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Convert Myanmar Date, Number and Get NRC Regions, Citizens and Townships
========================================================================

[](#convert-myanmar-date-number-and-get-nrc-regions-citizens-and-townships)

[![Testing](https://github.com/hakhant21/convert-mm/actions/workflows/main.yml/badge.svg?branch=main&event=push)](https://github.com/hakhant21/convert-mm/actions/workflows/main.yml)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require hakhant/convert-mm
```

Publish the configuration:
--------------------------

[](#publish-the-configuration)

```
php artisan vendor:publish --tag=convert
```

Usage
-----

[](#usage)

#### Convert number to myanmar format

[](#convert-number-to-myanmar-format)

```
$number = '1234567';

$convert = Convert::mm($number);

return $convert;

// output
'၁၂၃၄၅၆၇'
```

#### Convert date to myanmar format

[](#convert-date-to-myanmar-format)

```
$today = '2023-08-07';

$convert = Convert::mmDate($today);

return $convert;

// output
'၂၀၂၃ ခုနှစ်၊သြဂုတ်လ၊ ၀၇ ရက်'
```

### Date Avaliable lists

[](#date-avaliable-lists)

```
$mmDateNumber = Convert::mmDateNumber('2023-08-07')
// output '၂၀၂၃-၀၈-၀၇'

$year = Convert::year('2023')
// output '၂၀၂၃'

$month = Convert::month('08')
// output 'သြဂုတ်'

$day = Convert::day('8')
// output '၈'
```

### NRC Avaliable Lists

[](#nrc-avaliable-lists)

```
$regions = Convert::regions();
// return array of regions english format

$mmRegions = Convert::mmRegions();
// return array of regions myanmar format

$citizens = Convert::citizens();
// return array of citizens

$mmCitizens = Convert::mmCitizens();
// return array of citizens myanmar format

$townships = Convert::townships();
// return array of townships

$mmTownships = Convert::mmTownships();
// return array of townships

$number = Convert::nrcNumber('215556');
// return string '215556'

$mmNumber = Convert::mmNrcNumber('215556')
// return string '၂၁၅၅၅၆'

$fullNrc = Convert::fullNrc('12/', 'YaKaNa', '(N)', 123456);
// Or
$fullNrc = Convert::fullNrc('12', 'YaKaNa', 'N', 123456);
// Example out  '12/YaKaNa(N)215556'

$mmFullNrc = Convert::mmFullNrc('၁၂/', 'ရကန', '(နိင်)', 123456);
// Or
$mmFullNrc = Convert::mmFullNrc('၁၂', 'ရကန', 'နိင်', 123456);
// example output '၁၂/ရကန(နိုင်)၂၁၅၅၅၆'
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Htet Aung Khant](https://github.com/hakhant21)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

670d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c012dfcb5cfe4fc75050de1e6bda705ed7d2013ea3031b8bef33c65c3fb1e8e?d=identicon)[hakhant21](/maintainers/hakhant21)

---

Top Contributors

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

---

Tags

hakhantconvert-mm

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/hakhant-convert-mm/health.svg)

```
[![Health](https://phpackages.com/badges/hakhant-convert-mm/health.svg)](https://phpackages.com/packages/hakhant-convert-mm)
```

###  Alternatives

[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169175.3k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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