Giter Site home page Giter Site logo

eveafeline / iso-3166 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ravinsharma12345/iso-3166

0.0 1.0 0.0 851 KB

This is a set of files that aims to help you work with ISO Country Codes (ISO-3166-1) and ISO Region Codes (ISO-3166-2)

License: MIT License

PHP 100.00%

iso-3166's Introduction

ISO-3166 PHP/CSV files

This is a set of files that aims to help you work with ISO Country Codes (ISO-3166-1) and ISO Region Codes (ISO-3166-2).

All files are encoded in UTF-8, but when opened in Excel they may appear weird because they are not in native Office encoding.

PHP Files included:

  • ISO-3166.php: Array of Country codes ($ISO_3166_1) and array of regional codes ($ISO_3166_2).
  • ISO-3166-1.php: Only the Country Codes array ($ISO_3166_1).
  • ISO-3166-2.php: Only the Regional Codes array ($ISO_3166_1).
  • PHP Folder: Individual files per region that contains an array ($ISO_3166_2) with his information. Example of filename format: ISO-3166-2-US.php

PHP files format is based on associative arrays that let you find ISO code quickly, for example:

$ISO_3166_1['US'] = "United States";
$ISO_3166_2['GB']['LND'] = "City of London";

CSV files included:

  • ISO-3166.csv: All information about ISO Country codes and Region codes splitted with semicolon. Columns in file: COUNTRY NAME, COUNTRY SHORT CODE, COUNTRY LONG CODE, COUNTRY NUMBER CODE, REGION NAME, REGION TYPE, REGIONAL CODE, REGIONAL NUMBER CODE.
  • ISO-3166-1.csv: Only information about Country codes, columns in file: COUNTRY NAME, COUNTRY SHORT CODE, COUNTRY LONG CODE, COUNTRY NUMBER CODE.
  • ISO-3166-2.csv: Only information aboun Region codes, columns in file: COUNTRY SHORT CODE, REGION NAME, REGION TYPE, REGIONAL CODE, REGIONAL NUMBER CODE.
  • ISO folder: Individual csv files per region, same format as ISO-3166.csv.

Bitdeli Badge

Bitdeli Badge

iso-3166's People

Contributors

fran-diaz avatar bitdeli-chef avatar

Watchers

Naomi Culaclii (Naomi Lai, Yo-Chen Lai) avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.