2017 © Pedro Peláez
 

library iso3166-utility

Library to convert ISO3166 alpha-2 country codes to their alpha-3 counterpart and vice versa.

image

deft/iso3166-utility

Library to convert ISO3166 alpha-2 country codes to their alpha-3 counterpart and vice versa.

  • Tuesday, June 10, 2014
  • by jankramer
  • Repository
  • 1 Watchers
  • 3 Stars
  • 2,134 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

iso3166-utility

Library to convert ISO3166 alpha-2 country codes to their alpha-3 counterpart and vice versa., (*1)

Usage

<?php

$util = new Deft\ISO3166\CountryCodeUtility();
print $util->convertAlpha2ToAlpha3('NL'); // Outputs 'NLD'
print $util->convertAlpha3ToAlpha2('NLD'); // Outputs 'NL';

// Converting non-existing country codes will result in null
$util->convertAlpha3ToAlpha2('FOO'); // Returns null

// You can provide a custom country code list by passing the path as the first
// constructor argument. The file should be tab separated ("NL\tNLD\n")
$utilCustom = new Deft\ISO3166\CountryCodeUtility('custom_country_code_list.txt');

The Versions

10/06 2014

dev-master

9999999-dev

Library to convert ISO3166 alpha-2 country codes to their alpha-3 counterpart and vice versa.

  Sources   Download

MIT

by Jan Kramer

10/06 2014

1.0.0

1.0.0.0

Library to convert ISO3166 alpha-2 country codes to their alpha-3 counterpart and vice versa.

  Sources   Download

MIT

by Jan Kramer