mercyware / nigerianstates
Nigerian States 是一个帮助获取尼日利亚联邦共和国各州详情的软件包,包括地方政府、语言、创建日期、首府等。感谢 Rinvex LLC 提供的 Rinvex Country Package。https://github.com/rinvex/countries
dev-master
2024-04-12 23:45 UTC
This package is auto-updated.
Last update: 2024-09-13 00:37:40 UTC
README
Nigerian States 受 Rinvex Country Package 的启发 https://github.com/rinvex/countries。尼日利亚州 Laravel 包可以帮助轻松获取尼日利亚联邦共和国 36 个州的详细信息。
可用的信息包括
- 州名
- 州内地方政府
- 语言
- 创建日期
- 人口
- 首府
- 政治区
- 昵称
- 等等。
用法
通过 composer require mercyware/nigerianstates
安装
//Get the list of States
$states = StatesLoader::states();
//Get a State Details
$state = StatesLoader::state('abia');
//Get name of a state
$state->getName();
//Get The Officail Name of a state
$state->getOfficialName();
//Get The short code of a state
$state->getShortCode();
//Get the state capital name
$state->getStateCapital();
//Get the state geo political zone
$state->getGeoPoliticalZone();
//Get the date state was created
$state->getDateCreated();
//Get the state population according to 2016 Census
$state->getPopulation();
//Get the official website of state
$state->getStateWebsite();
//Get thestate Demonym
$state->getDemonym();
//Get the state nick name
$state->getStateNickName();
//Get the list of local government in the state
$state->getLocalGovernmentAreas();
//Get the languages spoken in the state
$state->getLanguages();
//Get the official website of state
$state->getStateWebsite();
//Get the official website of state
$state->getStateWebsite();