PHPackages                             fawkescreatives/myanmar-phone - 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. fawkescreatives/myanmar-phone

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

fawkescreatives/myanmar-phone
=============================

This package is for building easy to do Myanmar phone number in laravel.

v1.3.0(1y ago)3291MITPHPPHP ^8.1CI passing

Since Nov 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Fawkes-Creatives/myanmar-phone)[ Packagist](https://packagist.org/packages/fawkescreatives/myanmar-phone)[ RSS](/packages/fawkescreatives-myanmar-phone/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (11)Versions (5)Used By (0)

Laravel Myanmar Phone
=====================

[](#laravel-myanmar-phone)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e2c82fbccb280d63e68fce0cff16ca175b3de6ec339aa19f6d530b35c0dd61de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661776b65736372656174697665732f6d79616e6d61722d70686f6e652e737667)](https://packagist.org/packages/fawkescreatives/myanmar-phone)[![Laravel 10.x](https://camo.githubusercontent.com/540748966581100bddf2fb60b744c38e16e00ec667c5f22dd6ae6554a3a41693/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302e782d7265642e737667)](https://laravel.com/docs/10.x)[![Laravel 11.x](https://camo.githubusercontent.com/1cf7e76377e33c525ce7f5645f062caa61e32d7f2a143fa261c5cbce90820e67/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31312e782d7265642e737667)](https://laravel.com/docs/11.x)[![Laravel 12.x](https://camo.githubusercontent.com/b72e0aa3b09f6ee9f1cd47f19792a8204408312803c6b277768a5d2c99ffd60c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31322e782d7265642e737667)](https://laravel.com/docs/12.x)[![Total Downloads](https://camo.githubusercontent.com/25bf8e32c5255316168aa06ba169b9ba1297b671a60a21b8d4ef6a57d50609c4/68747470733a2f2f706f7365722e707567782e6f72672f6661776b65736372656174697665732f6d79616e6d61722d70686f6e652f646f776e6c6f616473)](https://packagist.org/packages/fawkescreatives/myanmar-phone)[![License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://packagist.org/packages/fawkescreatives/myanmar-phone)

Myanmar phone number များနှင့်ပတ်သက်ပြီး format လုပ်ခြင်းနှင့် check လုပ်နိုင်ရန်ရည်ရွယ်ပြီးတည်ဆောက်သည်။

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Validation](#validation)
    - [Functions](#functions)

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

[](#installation)

Composer ကိုသုံးပြီး Install လုပ်ပါ။

```
composer require fawkescreatives/myanmar-phone
```

Laravel Package Auto-Discovery မလုပ်လျှင် `config/app.php` file ထဲမှ `providers` ထဲမှာ ဒီလိုသွားထည့်ပါ။

```
/*
 * Package Service Providers...
 */

MyanmarPhone\MyanmarPhoneServiceProvider::class,
```

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish --provider="MyanmarPhone\MyanmarPhoneServiceProvider"
```

`config/myanmar_phone.php` တွင် default format standard ကိုသတ်မှတ်နိုင်သည်။

Usage
-----

[](#usage)

- Option 1: Use Injection

```
use MyanmarPhone\MyanmarPhone;

public function index(MyanmarPhone $service)
{
    $phone = '09251234567';

    return $service->make($phone)->getPhoneNumber();
}
```

- Option 2: Use Facade

```
use MyanmarPhone\Facades\MyanPhone;

public function index()
{
    $phone = '09251234567';

    return MyanPhone::make($phone)->getPhoneNumber();
}
```

### Validation

[](#validation)

eg..,

```
Validator::make($data, [
    'phone_number' => [
        'myanmar_phone'
    ],
]);
```

### Functions

[](#functions)

eg..,

```
MyanPhone::make($phone)->format(2); // look format number in config
```

- format($format)
- formatE164()
- formatInternational()
- formatRFC3966(string $separator = null)
- formatNational(string $separator = null)
- operator($number = null)
- telecom($number = null)
- isTelenor($number = null)
- isOoredoo($number = null)
- isMpt($number = null)
- isMyTel($number = null)
- isMec($number = null)
- getCountryCode()
- getStrPhoneNumber()
- getPhoneNumber($leadingZero = true)

Testing
-------

[](#testing)

You can run the tests with:

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance45

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 52.9% 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 ~401 days

Total

4

Last Release

422d ago

PHP version history (2 changes)v1.0.0PHP ^7.3|^8.0

v1.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e908f152a7ad197bfc3125362f66e74d7423078ad72575756cbbe9d30752c40?d=identicon)[fawkescreatives](/maintainers/fawkescreatives)

---

Top Contributors

[![tintnaingwin](https://avatars.githubusercontent.com/u/13062143?v=4)](https://github.com/tintnaingwin "tintnaingwin (18 commits)")[![naingminkhant](https://avatars.githubusercontent.com/u/18085762?v=4)](https://github.com/naingminkhant "naingminkhant (16 commits)")

---

Tags

laravelmyanmar-phone-numberphplaravelphonephone-numberMyanmarmyanmar-phone-numberMPTOoredootelenormyanmar-phone

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fawkescreatives-myanmar-phone/health.svg)

```
[![Health](https://phpackages.com/badges/fawkescreatives-myanmar-phone/health.svg)](https://phpackages.com/packages/fawkescreatives-myanmar-phone)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[pyaesoneaung/laravel-myanmar-tools

A package for Myanmar tools which extend Laravel’s core.

291.4k](/packages/pyaesoneaung-laravel-myanmar-tools)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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