2017 © Pedro Peláez
 

library iso3166

ISO 3166-1 alpha-2 mapping

image

julien-c/iso3166

ISO 3166-1 alpha-2 mapping

  • Wednesday, August 30, 2017
  • by julien-c
  • Repository
  • 3 Watchers
  • 41 Stars
  • 1,024,612 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 7 Forks
  • 4 Open issues
  • 5 Versions
  • 12 % Grown

The README.md

iso3166

ISO 3166-1 alpha-2 mapping:, (*1)

Get Country Name:, (*2)

echo Iso3166\Codes::country('FR');
// 'France'

Get Phone Code:, (*3)

echo Iso3166\Codes::phoneCode('FR');
// '33'

Get Continent Name:, (*4)

echo Iso3166\Codes::continent('EU');
// 'Europa'

Plus one super handy helper:, (*5)

echo Iso3166\Codes::countrySelector('class', 'name', 'FR');

will output:, (*6)

<select class="class" name="name">
  <option value="AF">Afghanistan</option>
  ...
  <option value="FR" selected>France</option>
  ...
</select>

The Versions

30/08 2017

dev-master

9999999-dev

ISO 3166-1 alpha-2 mapping

  Sources   Download

MIT

by Julien Chaumond

15/12 2015

2.0.1

2.0.1.0

ISO 3166-1 alpha-2 mapping

  Sources   Download

MIT

by Julien Chaumond

15/12 2015

2.0.0

2.0.0.0

ISO 3166-1 alpha-2 mapping

  Sources   Download

MIT

by Julien Chaumond

14/12 2015

1.1.0

1.1.0.0

ISO 3166-1 alpha-2 mapping

  Sources   Download

MIT

by Julien Chaumond

27/03 2014

1.0.0

1.0.0.0

ISO 3166-1 alpha-2 mapping

  Sources   Download

MIT

by Julien Chaumond