jajo/ng
最新稳定版本:1.0
Composer 安装命令:
composer require jajo/ng
包简介
Class to get data on Nigerian states, capitals and local government areas
README 文档
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!!! 🇳🇬 🇳🇬
统计信息
- 总下载量: 647
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-14