承接 l91/iso-3166-2 相关项目开发

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

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

l91/iso-3166-2

最新稳定版本:v1.0.2

Composer 安装命令:

composer require l91/iso-3166-2

包简介

PHP Lib for ISO 3166-2

README 文档

README

Complete Collection of json files for the country subdivision from ISO 3166-2.

ISO 3166-2 https://en.wikipedia.org/wiki/ISO_3166-2

Usage

$ukSubdivisions = \L91\ISO_3166_2\Subdivision::getSubdivisions('gb');

Folder Structure

  • subdivisions (all subdivisions by countrycode)
  • countrycode (specific translations)

Example:

  • subdivisions
    • at.json (all subdivisions from austria in the default/country language)
    • at
      • en.json (english translated subdivisions)

Contribute

Feel free to contribute by add translates and co. from the ISO-3166-2.

Progress
Subdivisions 100%
Specific Translates 1%

Code Snippet to get the ISO from Wiki in Dev Tools

var obj = {};
$('.jquery-tablesorter tbody').eq(0).find('td:first-child').each(function() {
     obj[$.trim($(this).text())] = $.trim($(this).next().text());
});

console.log(JSON.stringify(obj, null, 4));

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 1
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-29