PHPackages                             thiha-morph/myan-map - 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. thiha-morph/myan-map

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

thiha-morph/myan-map
====================

For those who lazy to write the cities and townships

v1.0.0(2y ago)375MITPHPPHP &gt;=7.3.0

Since Oct 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/thihaeungg/myan-map)[ Packagist](https://packagist.org/packages/thiha-morph/myan-map)[ RSS](/packages/thiha-morph-myan-map/feed)WikiDiscussions main Synced 1mo ago

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

Myan Map Composer Package
=========================

[](#myan-map-composer-package)

ကိုယ်တိုယ်လဲအသုံးပြုဖို့ရည်ရွယ်တာတစ်ကြောင်းရယ် တခြားသုံးချင်တဲ့ သူ ရှိရင်လည်း သုံးရအောင် ရေးရခြင်းဖြစ်ပါတယ်

15 State &amp; Regions, 6 Self Administers, 295 Cities, Yangon Mandalay Naypyitaw Townships

Requirements
------------

[](#requirements)

- PHP &gt;= 7.3;
- composer.

Features
--------

[](#features)

- PSR-4 autoloading compliant structure;
- Easy to use with Laravel Framework;

Installation
============

[](#installation)

```
composer require thiha-morph/myan-map

```

Setup &amp; Data Seeding
========================

[](#setup--data-seeding)

Publish Tables:
---------------

[](#publish-tables)

```
php artisan vendor:publish --provider="ThihaMorph\MyanMap\DatabaseServiceProvider"

```

And

```
php artisan migrate

```

Run Command For Data Adding Into Your Database:
-----------------------------------------------

[](#run-command-for-data-adding-into-your-database)

```
php artisan myanmap:data

```

- **Note** You can refresh the State,SelfAdminister,City,Township Data by this command and remember that command will be fresh these table data and will covert to default

Usage:
------

[](#usage)

- **Eloquent** State,SelfAdminister,City,Township. You can manage the query [Eloquent](https://laravel.com/docs/10.x/eloquent).
- **State Relationship Query** cities,self\_administers,capital,cities.townships,self\_administers.capital. Example:

    State::with(\['cities', 'self\_administers', 'capital'\])-&gt;first();

    State::with(\['cities', 'self\_administers', 'capital'\])-&gt;get();

    State::with(\['cities.townships', 'self\_administers.capital'\])-&gt;first();

    State::with(\['cities.townships', 'self\_administers.capital'\])-&gt;get();
- **Self Administer Relationship Query** cities,state,capital,cities.townships. Example:

    SelfAdminister::with(\['cities', 'state', 'capital'\])-&gt;first();

    SelfAdminister::with(\['cities', 'state', 'capital'\])-&gt;get();

    SelfAdminister::with(\['cities.townships'\])-&gt;first();

    SelfAdminister::with(\['cities.townships'\])-&gt;get();
- **City Relationship Query** townships,state,self\_administer, self\_administer.capital, state.cities. Example:

    City::with(\['townships', 'self\_administer', 'state'\])-&gt;first();

    City::with(\['townships', 'self\_administer', 'state'\])-&gt;get();

    City::with(\['self\_administer.capital', 'state.cities'\])-&gt;first();

    City::with(\['self\_administer.capital', 'state.cities'\])-&gt;get();
- **Township Relationship Query** city. Example:

    Township::with(\['city'\])-&gt;first();

    Township::with(\['city'\])-&gt;get();

    Township::with(\['city.state', 'city.self\_administer'\])-&gt;first();

    Township::with(\['city.state', 'city.self\_administer'\])-&gt;get();
- **Eloquent Command**. For the command for eloquent, you can simply use like you always use Create,Delete,Update,Status Update ( Example - Active ( true ) , Inactive ( false ));
- **Font Conversion** Currently Default Font is Unicode but anyway you can use name\_mm\_zg for Zawgyi Font instead of name\_mm ( Credit - Rabbit-PHP )

License
=======

[](#license)

Please refer to [LICENSE](https://github.com/thihaeungg/myan-map/blob/main/LICENSE).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

922d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10a9d20c0cf7a92cdf970b8911a4766930b557413c87c9959bf1b1621aaac065?d=identicon)[thihaeungg](/maintainers/thihaeungg)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thiha-morph-myan-map/health.svg)

```
[![Health](https://phpackages.com/badges/thiha-morph-myan-map/health.svg)](https://phpackages.com/packages/thiha-morph-myan-map)
```

###  Alternatives

[csharpru/vault-php

Best Vault client for PHP that you can find

8410.3M4](/packages/csharpru-vault-php)[composer-unused/contracts

Contract repository for composer-unused

115.7M2](/packages/composer-unused-contracts)

PHPackages © 2026

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