PHPackages                             favoriabs/ngstatelga - 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. favoriabs/ngstatelga

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

favoriabs/ngstatelga
====================

A laravel package that helps with Nigerian states and local government areas

1.0.0(9y ago)63122[1 issues](https://github.com/favoriabs/ngstatelga/issues)MITPHPPHP &gt;=5.4.0

Since May 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/favoriabs/ngstatelga)[ Packagist](https://packagist.org/packages/favoriabs/ngstatelga)[ RSS](/packages/favoriabs-ngstatelga/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (1)Used By (0)

ngstatelga
==========

[](#ngstatelga)

Introduction
============

[](#introduction)

This laravel package helps developers with Nigerian states and local government areas.

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

[](#installation)

PHP 5.4+ and Composer is required.

To get this package, simply add the following line to the require block of your composer.json file.

```
  composer require favoriabs/ngstatelga:1.0.0

```

Once the NgStateLga is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` section.

- `Favoriabs\NgStateLga\NgStateLgaServiceProvider::class,`

Usage
=====

[](#usage)

After this is done, you'll need to run the following commands.

- `php artisan vendor:publish` . This will publish migration files for both states and local government areas to your migration file. It will also publish seeder files. It will also publish the view page, so you can edit it as you want the page to be.

When this is done, you will need to run `php artisan migrate` to migrate. Then `php artisan db:seed` to seed with the appropriate states and local government areas. Do not forget to add the classes for the seeder files to `DatabaseSeeder.php` like so:

```
  $this->call(StatesTableSeeder::class);
  $this->call(Lgas_1_TableSeeder::class);
  $this->call(Lgas_2_TableSeeder::class);
  $this->call(Lgas_3_TableSeeder::class);
  $this->call(Lgas_4_TableSeeder::class);

```

You can now navigate to the appropriate route (/ngstatelga) at the root of your app like so:

```
localhost:8000/ngstatelga

```

This should load up a view with the all Nigerian states and their respective local government areas.

Contributing
============

[](#contributing)

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

License
=======

[](#license)

The MIT License (MIT).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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

3335d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20046379?v=4)[Oriabure Favour](/maintainers/favoriabs)[@favoriabs](https://github.com/favoriabs)

---

Top Contributors

[![favoriabs](https://avatars.githubusercontent.com/u/20046379?v=4)](https://github.com/favoriabs "favoriabs (23 commits)")

---

Tags

laravel-packagelgasnigeriaphpstateslaravelNigeriastatesLocal GovernmentLgas

### Embed Badge

![Health badge](/badges/favoriabs-ngstatelga/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[dougsisk/laravel-country-state

Country &amp; state helper for Laravel.

1681.8M](/packages/dougsisk-laravel-country-state)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[dipeshsukhia/laravel-country-state-city-data

Country State City Data Provider

8231.3k1](/packages/dipeshsukhia-laravel-country-state-city-data)

PHPackages © 2026

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