The Wayback Machine - https://web.archive.org/web/20200917025835/https://github.com/donjajo/NG
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

NG

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!!! πŸ‡³πŸ‡¬ πŸ‡³πŸ‡¬

About

PHP Class containing Nigeria's Data

Topics

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.