jajo/ng

Class to get data on Nigerian states, capitals and local government areas

Maintainers

Details

github.com/donjajo/NG

Source

Issues

Installs: 588

Dependents: 0

Suggesters: 0

Security: 0

Stars: 12

Watchers: 1

Forks: 7

Open Issues: 2

pkg:composer/jajo/ng

1.0 2018-06-14 09:36 UTC

This package is auto-updated.

Last update: 2025-10-14 07:02:38 UTC


README

PHP Class containing Nigeria's Data

Usage

Install package composer require jajo/ng

Get States

<?php 
use Jajo\NG;

$ng = new NG();
$ng->states;

Get Local Government Areas

<?php 
use Jajo\NG;

$ng = new NG();
$ng->getLGA( 'Lagos' );

Get State Capital

<?php 
use Jajo\NG;

$ng = new NG();
$ng->getCapital( 'Lagos' );

Get LGA or Capital owned by a state

<?php 
use Jajo\NG;

$ng = new NG();
$ng->getStateBy( 'capital', 'Ikeja' );
$ng->getStateBy( 'lga', 'Ohafia' );

Contributing

I would love to extend this class to a database of Nigerian data, I had to start somewhere. Any form of contribution is welcomed!

Finally

Much love from Naija!!! 🇳🇬 🇳🇬