2017 © Pedro Peláez
 

library postcodes

A library to help converting from the outdated post-codes to icu-country-codes, vice versa

image

rkr/postcodes

A library to help converting from the outdated post-codes to icu-country-codes, vice versa

  • Thursday, December 4, 2014
  • by rkr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 177 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

rkr/postcodes

A library to help converting from the outdated post-codes to icu-country-codes, vice versa., (*1)

Get a postcode for a ICU-code

$provider = new \Kir\PostCodes\PostCodeProvider();
echo $provider->getPostCodeFromIso3166('DE');
D

Get a ICU-Code from a postcode

$provider = new \Kir\PostCodes\PostCodeProvider();
echo $provider->getIso3166CodeFromPostCode('D');
DE

Get a list of all available ICU-codes

$provider = new \Kir\PostCodes\PostCodeProvider();
echo implode(', ', $provider->getAllIcuCodes());
AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, ...

Get a list of all available postcodes

$provider = new \Kir\PostCodes\PostCodeProvider();
echo implode(', ', $provider->getAllPostCodes());
AND, UAE, AFG, ANT, AIA, AL, ARM, NA, ANG, ...

Get a key-value list of all available ICU-codes

$provider = new \Kir\PostCodes\PostCodeProvider();

print_r($provider->getIcuCodesToPostcodes());
['AD' => 'AND', 'AE' => 'UAE', 'AF' => 'AFG', 'AG' => 'ANT', ...]

Get a key-value list of all available post-codes

$provider = new \Kir\PostCodes\PostCodeProvider();

print_r($provider->getPostcodesToIcuCodes());
['AND' => 'AD', 'UAE' => 'AE', 'AFG' => 'AF', 'ANT' => 'AG', ...]

The Versions

04/12 2014

dev-master

9999999-dev

A library to help converting from the outdated post-codes to icu-country-codes, vice versa

  Sources   Download

The Requires

  • php >= 5.3

 

The Development Requires

04/12 2014

0.0.1

0.0.1.0

A library to help converting from the outdated post-codes to icu-country-codes, vice versa

  Sources   Download

The Requires

  • php >= 5.3

 

The Development Requires