PHPackages                             wordpressvn/vietnam-address - 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. wordpressvn/vietnam-address

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

wordpressvn/vietnam-address
===========================

Display information on the administrative divisions of Vietnam (Provinces, Cities, Districts, Towns, Communes, Wards, Townships, etc.)

1.0.0(1y ago)02MITPHP

Since Dec 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wordpressvn/vietnam-address)[ Packagist](https://packagist.org/packages/wordpressvn/vietnam-address)[ RSS](/packages/wordpressvn-vietnam-address/feed)WikiDiscussions master Synced 1mo ago

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

Vietnam Address
===============

[](#vietnam-address)

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

[](#installation)

Install `composer`

```
composer require wordpressvn/vietnam-address
```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use WPVNTeam\VietnamAddressAPI\Address;

echo "";

print_r(Address::getProvinces());

Address::setSchema(['name', 'type']);

print_r(Address::getProvinces(['01', 87, 12]));

print_r(Address::getProvince('01'));

print_r(Address::getDistrictsByProvinceId('01'));

print_r(Address::getDistrict('009'));

print_r(Address::getWardsByDistrictId('009'));

print_r(Address::getWard('009', '00346'));

print_r(Address::getDistrictsByProvinceName('Tây Ninh'));

print_r(Address::getDistrictsByProvinceName('tay-ninh', 'slug'));

print_r(Address::getWardsByDistrictName('Tân Biên, Tây Ninh'));

print_r(Address::getWardsByDistrictName('Huyện Tân Biên, Tỉnh Tây Ninh', 'name_with_type'));

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance42

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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

510d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e94123630d250ccc2fcf91fcf25ada2b6fee4879844e1b60ab1ec5e46c15a315?d=identicon)[wordpressvn](/maintainers/wordpressvn)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/wordpressvn-vietnam-address/health.svg)

```
[![Health](https://phpackages.com/badges/wordpressvn-vietnam-address/health.svg)](https://phpackages.com/packages/wordpressvn-vietnam-address)
```

###  Alternatives

[tzfrs/googlesitemapparser

Google Sitemap is a Sitemap standard that is supported by Ask.com, Google, YAHOO and MSN Search. This library can read in such Sitemaps and parse all urls from them.

143.3k](/packages/tzfrs-googlesitemapparser)[lrobert/gravatar

A library to make working with Gravatar in PHP easy.

101.4k](/packages/lrobert-gravatar)

PHPackages © 2026

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