PHPackages                             unicodeveloper/laravel-ngsc - 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. unicodeveloper/laravel-ngsc

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

unicodeveloper/laravel-ngsc
===========================

A Laravel 5 Package for providing a fluent API for states, lgas and cities in Nigeria

1.0.0(10y ago)10208[1 issues](https://github.com/unicodeveloper/laravel-ngsc/issues)[4 PRs](https://github.com/unicodeveloper/laravel-ngsc/pulls)MITPHPPHP &gt;=5.5.9

Since Jan 27Pushed 7y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

laravel-ngsc
============

[](#laravel-ngsc)

[![Latest Stable Version](https://camo.githubusercontent.com/aed44f8131e4cb59c243a44a29f244ba0c8a1ba7e706c0cfc03070571508b51b/68747470733a2f2f706f7365722e707567782e6f72672f756e69636f646576656c6f7065722f6c61726176656c2d6e6773632f762f737461626c652e737667)](https://packagist.org/packages/unicodeveloper/laravel-ngsc)[![](https://camo.githubusercontent.com/984f6792e3d81e34b782c12770dfd5e6153ea75f5e71d8e668933b988ba1a81f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e69636f646576656c6f7065722d617070726f7665642d627269676874677265656e2e737667)](https://camo.githubusercontent.com/984f6792e3d81e34b782c12770dfd5e6153ea75f5e71d8e668933b988ba1a81f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e69636f646576656c6f7065722d617070726f7665642d627269676874677265656e2e737667)[![License](https://camo.githubusercontent.com/70466aee863c19fc0a9caf70a4087ecbf0f9789d6854bce2a96d71a3ba45145c/68747470733a2f2f706f7365722e707567782e6f72672f756e69636f646576656c6f7065722f6c61726176656c2d6e6773632f6c6963656e73652e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/06cf0bfad6a2f3279bc4dbcf75b7ee6760c599da03055ab9cbc42eb325713ef7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f756e69636f646576656c6f7065722f6c61726176656c2d6e6773632e737667)](https://travis-ci.org/unicodeveloper/laravel-ngsc)[![Quality Score](https://camo.githubusercontent.com/ba6817e417ee3bd14e2a6a0bca70da3ba5a6ed224f8763c2c6ac1523f58fb72f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f756e69636f646576656c6f7065722f6c61726176656c2d6e6773632e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/unicodeveloper/laravel-ngsc)[![Total Downloads](https://camo.githubusercontent.com/cbb2bd72458caac8c28f5c14477b7b3cd9f75b0e2a01399a1e7e38c1ecf4f2ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756e69636f646576656c6f7065722f6c61726176656c2d6e6773632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/unicodeveloper/laravel-ngsc)

> A Laravel 5 Package for providing a fluent API for states, lgas and cities in Nigeria

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

[](#installation)

[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel Ngsc, simply add the following line to the require block of your `composer.json` file.

```
"unicodeveloper/laravel-ngsc": "1.0.*"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

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

- `Unicodeveloper\Ngsc\NgscServiceProvider::class`

Also, register the Facade like so:

```
'aliases' => [
    ...
    'Ngsc' => Unicodeveloper\Ngsc\Facades\NgscFacade::class,
    ...
]
```

Configuration
-------------

[](#configuration)

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish --provider="Unicodeveloper\Ngsc\NgscServiceProvider"
```

Usage
-----

[](#usage)

You can use it in your controller by using Dependency Injection like so:

```
