jajo / ng
Class to get data on Nigerian states, capitals and local government areas
1.0
2018-06-14 09:36 UTC
Requires (Dev)
- phpunit/phpunit: ^7.2
This package is auto-updated.
Last update: 2024-11-14 04:44:56 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!!! 🇳🇬 🇳🇬