PHPackages                             vanthao03596/laravel-hanhchinhvn - 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. vanthao03596/laravel-hanhchinhvn

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

vanthao03596/laravel-hanhchinhvn
================================

hành chính việt nam laravel

1.2.0(4y ago)406.3k↓25%10MITPHPPHP ^7.3 || ^8.0

Since May 20Pushed 4y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (13)Used By (0)

Phân cấp hành chính Việt Nam cho Laravel
========================================

[](#phân-cấp-hành-chính-việt-nam-cho-laravel)

Laravel hcvn contain all cities, districts, wards in vietnam

[(Chú ý: Huyện Lý Sơn tỉnh Quảng Ngãi hiện chỉ còn cấp Huyện không có cấp xã )](https://vov.vn/chinh-tri/huyen-ly-son-tinh-quang-ngai-khong-con-don-vi-hanh-chinh-cap-xa-1026812.vov)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5d355cd17fb65e337378016c76bce97d4221f27106f5626a534a94bcad8099f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76616e7468616f30333539362f6c61726176656c2d68616e686368696e68766e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vanthao03596/laravel-hanhchinhvn)[![Tests](https://github.com/vanthao03596/laravel-hanhchinhvn/workflows/run-tests/badge.svg)](https://github.com/vanthao03596/laravel-hanhchinhvn/workflows/run-tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/e5f7af5842b2f470a49b5d2b653ad051bba8a206af368c2d582ee43c651eac6a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76616e7468616f30333539362f6c61726176656c2d68616e686368696e68766e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vanthao03596/laravel-hanhchinhvn)

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

[](#installation)

You can install the package via composer:

```
composer require vanthao03596/laravel-hanhchinhvn
```

Usage
-----

[](#usage)

```
php artisan vendor:publish --provider="Vanthao03596\HCVN\HCVNServiceProvider"
php artisan migrate
php artisan hcvn:install
```

### Working with Models

[](#working-with-models)

Get all cities, districts, wards

```
use Vanthao03596\HCVN\Models\Province;
use Vanthao03596\HCVN\Models\District;
use Vanthao03596\HCVN\Models\Ward;

$cities = Province::get();
$districts = District::get();
$wards = Ward::get();
```

Get data via relationship

```
use Vanthao03596\HCVN\Models\Province;

$city = Province::first();
$districts = $city->districts;
$wards = $city->wards;
```

All data get from: [madnh/hanhchinhvn](https://github.com/madnh/hanhchinhvn)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Credits
-------

[](#credits)

- [PhamThao](https://github.com/PhamThao)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

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 ~59 days

Recently: every ~85 days

Total

12

Last Release

1531d ago

PHP version history (4 changes)1.0PHP ^7.2

1.1.2PHP ^7.2|^8.0

1.1.7PHP ^7.2.5|^8.0

1.1.8PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34786441?v=4)[Pham Thao](/maintainers/vanthao03596)[@vanthao03596](https://github.com/vanthao03596)

---

Top Contributors

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

---

Tags

laravelvanthao03596hanhchinhvn

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vanthao03596-laravel-hanhchinhvn/health.svg)

```
[![Health](https://phpackages.com/badges/vanthao03596-laravel-hanhchinhvn/health.svg)](https://phpackages.com/packages/vanthao03596-laravel-hanhchinhvn)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[matt-daneshvar/laravel-survey

Create surveys inside your Laravel app

28770.3k](/packages/matt-daneshvar-laravel-survey)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58109.4k](/packages/laracraft-tech-laravel-useful-additions)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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