定制 mercyware/nigerianstates 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mercyware/nigerianstates

Composer 安装命令:

composer require mercyware/nigerianstates

包简介

Nigerian States is a package that helps retrieve details about states in the Federal Republic of Nigeria icnluding Local Governement, Languages, Date Created, Capital and more. Credit: Rinvex LLC from the Rinvex Country Package. https://github.com/rinvex/countries

README 文档

README

Nigerian States is inspired by Rinvex Country Package https://github.com/rinvex/countries. The Nigerian states laravel package helps to easily retrive information about the 36 states in the Federal Republic of Nigeria.

Available information includes

  • State Name
  • Local Governments within the States
  • Languages
  • Date Created
  • Population
  • Capital
  • Political Zone
  • Nick Name
  • and more.

Usage

install via 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(); 

Source of Information

统计信息

  • 总下载量: 239
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-18