2017 © Pedro Peláez
 

library ng

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

image

jajo/ng

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

  • Thursday, June 14, 2018
  • by donjajo
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

NG

PHP Class containing Nigeria's Data, (*1)

Usage

Install package composer require jajo/ng, (*2)

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!, (*3)

Finally

Much love from Naija!!! 🇳🇬 🇳🇬, (*4)

The Versions

14/06 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Development Requires

by Jajo

14/06 2018

1.0

1.0.0.0

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

  Sources   Download

MIT

The Development Requires

by Jajo