PHPackages                             elbrahms/niger-location - 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. elbrahms/niger-location

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

elbrahms/niger-location
=======================

This package offers a simple way to get the regions, departments, communes and localities of the Niger Republic (NE:+227) that you might need for your application - for example, for drop-down menus.

v1.1(1y ago)018MITPHP

Since Sep 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Elbrahms05/niger-location)[ Packagist](https://packagist.org/packages/elbrahms/niger-location)[ RSS](/packages/elbrahms-niger-location/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

Niger Location ▲
================

[](#niger-location-)

[![hero](https://camo.githubusercontent.com/ed33dffcda4d3edac17e7ee67978b5e90195e722aae426060c46ac4fa6544ea8/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f647461666a616b6d642f696d6167652f75706c6f61642f76313732353133313238362f6c6f63616c697465734279436f6d6d756e655f636e666d72742e706e67)](https://camo.githubusercontent.com/ed33dffcda4d3edac17e7ee67978b5e90195e722aae426060c46ac4fa6544ea8/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f647461666a616b6d642f696d6167652f75706c6f61642f76313732353133313238362f6c6f63616c697465734279436f6d6d756e655f636e666d72742e706e67)

Introduction 🖖
--------------

[](#introduction-)

This package offers a simple way to get the regions, departments, communes and localities of the Niger Republic (NE:+227) that you might need for your application - for example, for drop-down menus.

### Step One - Install via Composer 🎼

[](#step-one---install-via-composer-)

Require the package via composer into your project

```
composer require elbrahms/niger-location
```

[![composer install](https://camo.githubusercontent.com/99c63f10b10943035b36e0946ae8981f46dcc54f18efad801ef14948b7e452b0/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f647461666a616b6d642f696d6167652f75706c6f61642f76313732353133313238352f696e7374616c6c6174696f6e5f7061636b6167655f626b756638712e706e67)](https://camo.githubusercontent.com/99c63f10b10943035b36e0946ae8981f46dcc54f18efad801ef14948b7e452b0/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f647461666a616b6d642f696d6167652f75706c6f61642f76313732353133313238352f696e7374616c6c6174696f6e5f7061636b6167655f626b756638712e706e67)

### Step Two - Publish Configurations ⚙️

[](#step-two---publish-configurations-️)

Laravel location provides you with an easy way of customizing the tables used for storing Countries, States and Cities. Also, you can customisethe route prefix and middleware. To customize these you need to publish the configuration file. To publish the configuration file, run:

`php artisan vendor:publish --tag=niger-location`

You will have `config/location.php` available for you to edit. The default configurations are:

```
