PHP Class containing Nigeria's Data
Install package composer require jajo/ng
<?php
use Jajo\NG;
$ng = new NG();
$ng->states;<?php
use Jajo\NG;
$ng = new NG();
$ng->getLGA( 'Lagos' );<?php
use Jajo\NG;
$ng = new NG();
$ng->getCapital( 'Lagos' );<?php
use Jajo\NG;
$ng = new NG();
$ng->getStateBy( 'capital', 'Ikeja' );
$ng->getStateBy( 'lga', 'Ohafia' );I would love to extend this class to a database of Nigerian data, I had to start somewhere. Any form of contribution is welcomed!
Much love from Naija!!! 🇳🇬 🇳🇬