承接 emmadonjo/naija 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

emmadonjo/naija

Composer 安装命令:

composer require emmadonjo/naija

包简介

Naija is a PHP package that provides data about States, Local Government Areas, cities, and towns in Nigeria.

README 文档

README

Build Status Total Downloads Latest Stable Version License

Naija is a PHP package that provides data about States, Local Government Areas, cities, and towns in Nigeria.

This package is inspired by https://github.com/Mercyware/Nigerian-States.

With this package you can retrieve the following state-related information:

  • Name
  • Capital
  • Political Zone
  • Creation Date
  • Population - Male and female
  • Website
  • Logo
  • Flag
  • Nick Name
  • Languages
  • Local Governments Areas
  • Areas - villages, towns, and cities

Usage

Install via:

    composer require emmadonjo/naija
use Emmadonjo\Naija\Naija;

// get list of states with minimal information
$states = Naija::states();

// get the comprehensive information of a state
$state = Naija::state('Abia');

// get all the attributes of a state
$state->getAttributes();

// get name
$state->getName();

// get nickname
$state->getNickName();

// get official name
$state->getOfficialName();

// get short code
$state->getShortCode();

// get capital
$state->getCapital();

// get geo political zone
$state->getGeoPoliticalZone();

// get date created
$state->getDateCreated();

// get population
$state->getPopulation();

// get website
$state->getWebsite();

// get logo
$state->getLogo();

// get flag
$state->getFlag();


// get languages
$state->getLanguages();

// get LGAs
$state->getLgas();

// get areas - villages, cities, and towns
$state->getAreas();

Display assets - logos and flags To display logos and flags of states, you can copy the assets to the images folder in the accessible location of your application.

For example, if you are developing with laravel, copy:

  • resources/logos to public/images/logos, and
  • resources/flags to public/images/flags

Then you can access the assets as follows:

  • /images/logos/abia.png
  • /images/flags/abia.png

Contributing

Contributions are welcome — whether that's fixing or filling in a state's LGA/area data, or improving the PHP API. See CONTRIBUTING.md for the data format, sourcing requirements, and how to run the test suite.

Sources

General

Abia State

Adamawa State

Akwa Ibom State

Anambra State

Bauchi State

Bayelsa State

Benue State

Borno State

Cross River State

Delta State

Ebonyi State

Edo State

Ekiti State

Enugu State

Federal Capital Territory

Gombe State

Imo State

Jigawa State

Kaduna State

Kano State

Katsina State

Kebbi State

Kogi State

Kwara State

Lagos State

Nasarawa State

Niger State

Ogun State

Ondo State

Osun State

Oyo State

Plateau State

Rivers State

Sokoto State

Taraba State

Zamfara State

Yobe State

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固