PHPackages                             uyoobonga/statecity - 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. uyoobonga/statecity

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

uyoobonga/statecity
===================

This package will load all states in Nigeria and their respective Cities

2.0.1(5y ago)09MITPHP

Since Jun 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/uyo-obong/statecity)[ Packagist](https://packagist.org/packages/uyoobonga/statecity)[ RSS](/packages/uyoobonga-statecity/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (0)

Laravel StateCity Package
=========================

[](#laravel-statecity-package)

[![Issues](https://camo.githubusercontent.com/734b70d087cdf36a732618325f3e09a38438b4eeb730a80a727da06e7bc375c9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f75796f2d6f626f6e672f7374617465636974793f7374796c653d666c61742d737175617265)](https://github.com/uyo-obong/statecity/issues)[![Issues](https://camo.githubusercontent.com/cdafb71741f15c17458957c4e8eb8945525e1164e8fcda5af8a930d11cedb410/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f75796f2d6f626f6e672f7374617465636974793f7374796c653d666c61742d737175617265)](https://github.com/uyo-obong/statecity/forks)[![Issues](https://camo.githubusercontent.com/b173896646abbba14fb18ccb61f282f9593c2441dc0f13a2d9cba2c241e9aac2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f75796f2d6f626f6e672f7374617465636974793f7374796c653d666c61742d737175617265)](https://github.com/uyo-obong/statecity/stargazers)

This laravel package load all states in Nigeria and their respective Cities
---------------------------------------------------------------------------

[](#this-laravel-package-load-all-states-in-nigeria-and-their-respective-cities)

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

[](#requirements)

PHP ^7.0

Laravel ^7.0

### Reference elements

[](#reference-elements)

Your request will content the following reference name:

- `state`: attribute name use in select field.
- `code`: attribute name use in getting 3 characters use for each state.
- `city`: attribute name use in select field for LGA.

Example:

- Single Row

[![alt single](https://camo.githubusercontent.com/e4bfabbb49cddf94213820ea034f955f8b29975f21c44e391d10cafb274738e0/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f75796f2d6f626f6e672f696d6167652f75706c6f61642f76313539313136363331312f73696e676c655f726f772e706e67)](https://camo.githubusercontent.com/e4bfabbb49cddf94213820ea034f955f8b29975f21c44e391d10cafb274738e0/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f75796f2d6f626f6e672f696d6167652f75706c6f61642f76313539313136363331312f73696e676c655f726f772e706e67)

- Double Row Select

[![alt double](https://camo.githubusercontent.com/a20dc89c63361110508d236bd27f23c1011bbaa38156d429c678f008cf028b41/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f75796f2d6f626f6e672f696d6167652f75706c6f61642f76313539313136363338382f646f75626c655f726f772e706e67)](https://camo.githubusercontent.com/a20dc89c63361110508d236bd27f23c1011bbaa38156d429c678f008cf028b41/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f75796f2d6f626f6e672f696d6167652f75706c6f61642f76313539313136363338382f646f75626c655f726f772e706e67)

Setup
-----

[](#setup)

- `composer require`

```
composer require uyoobonga/statecity
```

- Run Migrations

```
php artisan migrate
```

- Seed database

```
php artisan db:seed --class=Uyoobonga\\StateCity\\database\\seeds\\StateCityTableSeeder
```

- Note: if you want to have access to the view, use the syntax below to publish it.

```
 php artisan vendor:publish --tag=statecity-views
```

Usage
-----

[](#usage)

Include any of the blade syntax.

- Double row

```
@include('statecity::double_row_select')

```

- Single row

```
@include('statecity::single_row_select')

```

TODO
----

[](#todo)

- Symfony support
- Django support
- vuejs support
- Test! Test!! Test!!!

Contributions
-------------

[](#contributions)

If you want to contribute to this library, fork the repo and submit your PR.

- Issue and PR are welcome.

Author
------

[](#author)

- [Uyo-obong](https://github.com/uyo-obong/)

About
-----

[](#about)

This package published under MIT license. If you have any question or suggestion, please feel free to submit an issue, or email me .

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Every ~3 days

Total

4

Last Release

2160d ago

Major Versions

v1.0.1 → v2.0.02020-06-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26380735?v=4)[Uyo-obong A.](/maintainers/Uyo-obong)[@uyo-obong](https://github.com/uyo-obong)

---

Top Contributors

[![uyo-obong](https://avatars.githubusercontent.com/u/26380735?v=4)](https://github.com/uyo-obong "uyo-obong (9 commits)")

### Embed Badge

![Health badge](/badges/uyoobonga-statecity/health.svg)

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

###  Alternatives

[fisharebest/webtrees

webtrees online genealogy

73710.5k13](/packages/fisharebest-webtrees)[recca0120/twzipcode

twzipcode

13729.1k](/packages/recca0120-twzipcode)[mdwheele/swotphp

Identify email addresses or domains names that belong to colleges or universities.

6847.8k1](/packages/mdwheele-swotphp)[symbiote/silverstripe-dynamiclists

A Module that allows users to create custom data lists. These lists can then be used in a form control (specified via code by a developer) or within a user defined form to be able to define controlled vocabularies managed in a central location that might be used across several forms.

109.5k1](/packages/symbiote-silverstripe-dynamiclists)[pure_mashiro/magento2-bundlejs

Advanced JavaScript Bundling

111.5k](/packages/pure-mashiro-magento2-bundlejs)

PHPackages © 2026

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