定制 ishdidev/country 二次开发

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

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

ishdidev/country

最新稳定版本:v1.0.0

Composer 安装命令:

composer require ishdidev/country

包简介

A simple library to list countries.

关键字:

README 文档

README

This repository contains standalone PHP country classes. This can be used for listing countires, states, currency, continent, languages, phone code etc.

Installation

composer require ishdidev/country

Available Methods

$country = new Country();

//List all countries
$countryList = $country->getCountries();

//Get Data
$countryName = $country->getData('IN', Country::COUNTRY_NAME);

$countryCode = $country->getData('India', Country::COUNTRY_CODE);

$phoneCode = $country->getData('IN', Country::COUNTRY_PHONE);

$countryState = $country->getData('IN', Country::COUNTRY_STATE);

$countryLanguages = $country->getData('IN', Country::COUNTRY_LANGUAGE_ALL);

$countryLanguage = $country->getData('IN', Country::COUNTRY_LANGUAGE_MAIN);

$countryContinent = $country->getData('IN', Country::COUNTRY_CONTINENT);

$countryCurrency = $country->getData('IN', Country::COUNTRY_CURRENCY);

$countryCapital = $country->getData('IN', Country::COUNTRY_CAPITAL);

//List all languages

$language = new Language();

$languageList = $language->list();

//List all currencies

$currency = new Currency();

$currencyList = $currency->list();

//List all continents

$continentList = $country->listContinent();

统计信息

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

GitHub 信息

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

其他信息

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