PHPackages                             pratiksh/laranepal - 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. pratiksh/laranepal

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

pratiksh/laranepal
==================

Your Package Description here

v1.0.2(5y ago)282204MITPHP

Since Oct 14Pushed 2y ago2 watchersCompare

[ Source](https://github.com/pratiksh404/laranepal)[ Packagist](https://packagist.org/packages/pratiksh/laranepal)[ RSS](/packages/pratiksh-laranepal/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (5)Used By (0)

[![Laravel Nepal](https://github.com/pratiksh404/laranepal/raw/main/img/laranepal.png)](https://github.com/pratiksh404/laranepal/blob/main/img/laranepal.png)

[![Stars](https://camo.githubusercontent.com/29f779f03261ea66e10936602df70b951b9af5f13b9ff3c8184d5afa0aa21113/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f70726174696b73683430342f6c6172616e6570616c)](https://github.com/pratiksh404/laranepal/stargazers)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/5c5acc041b93a1be9d07ac6b80192a93fb68bcf9d0e7ae3e14c0a821060a8cee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70726174696b73682f6c6172612d6e6570616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pratiksh/lara-nepal)

LaraNepal
=========

[](#laranepal)

Install
-------

[](#install)

```
composer require pratiksh/laranepal
```

then publish the package seeds

```
php artisan import:nepal
```

```
composer dump-autoload
```

then migrate the tables

```
php artisan migrate
```

that's it, you are good to go.

`Note` if seeder not found run `composer dump-autoload`

Usage
-----

[](#usage)

Package uses facade `LaraNepal` to retrive

- Provinces
- Districts
- Municipalities

```
// use Pratiksh\LaraNepal\Facade\LaraNepal;

$provinces = LaraNepal::provinces();
$districts = LaraNepal::districts();
$municipalities = LaraNepal::municipalities();
```

Relations
---------

[](#relations)

Package also provides relation among provinces, districts and municipalities.

```
// use Pratiksh\LaraNepal\Facade\LaraNepal;

// Province District Relation
$province = LaraNepal::provinces()->first();
$provinces->districts; // Retrives districts of that particular province

// District Province Relation
$district = LaraNepal::districts()->first();
$district->province; // Retrives province where that district belongs to.

// District Municipality Relation
$district = LaraNepal::districts()->first();
$district->municipalities;

// Muncipality district relation
$municipality = LaraNepal::municipalities()->first();
$municipality->district; // Retrive district where that municipality belongs to
```

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.

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.8% 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 ~4 days

Total

3

Last Release

2034d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/001849cfcd496d28474179bde8e510e82ea2ff8b32291d2ac8fc905a754512e0?d=identicon)[pratiksh404](/maintainers/pratiksh404)

---

Top Contributors

[![pratiksh404](https://avatars.githubusercontent.com/u/40533219?v=4)](https://github.com/pratiksh404 "pratiksh404 (21 commits)")[![sagautam5](https://avatars.githubusercontent.com/u/10434281?v=4)](https://github.com/sagautam5 "sagautam5 (3 commits)")[![anushhada46](https://avatars.githubusercontent.com/u/41660565?v=4)](https://github.com/anushhada46 "anushhada46 (1 commits)")[![schandan351](https://avatars.githubusercontent.com/u/32383995?v=4)](https://github.com/schandan351 "schandan351 (1 commits)")

---

Tags

laranepallaravel-nepalnepal-districtsnepal-locationsnepal-municipalitiesnepal-provinceslaravel-nepalnepal-statesnetal-districts

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pratiksh-laranepal/health.svg)

```
[![Health](https://phpackages.com/badges/pratiksh-laranepal/health.svg)](https://phpackages.com/packages/pratiksh-laranepal)
```

PHPackages © 2026

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