2017 © Pedro Peláez
 

library intl-subdivision

A PHP Intl library to retrieve states for a given country.

image

trickeyone/intl-subdivision

A PHP Intl library to retrieve states for a given country.

  • Friday, November 18, 2016
  • by trickeyone
  • Repository
  • 1 Watchers
  • 0 Stars
  • 69 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

IntlSubdivision Component

PHPUnit code coverage badge Test Coverage Code Climate, (*1)

A companion component to Symfony's Intl Component. This component allows for easy retrieval of a country's states/provinces using the country's [ISO 3166-1 alpha-2]0 code., (*2)

The Symfony Intl component is a replacement for the C intl extension. It is limited to only the "en" locale. If you want to have access to more locales you should install the intl PECL extension., (*3)

Usage:

// States/Provinces for the United States of America
$subdivisionsForUS = \Symfony\Component\IntlSubdivision\IntlSubdivision::getStatesAndProvincesForCountry('US');

// States/Provinces for Canada
$subdivisionsForCA = \Symfony\Component\IntlSubdivision\IntlSubdivision::getStatesAndProvincesForCountry('CA');

// States/Provinces for the United Arab Emirates
$subdivisionsForAE = \Symfony\Component\IntlSubdivision\IntlSubdivision::getStatesAndProvincesForCountry('AE');

Requirements

  • PHP 7+ or 8+
  • Symfony Intl package 5.0+ or 6.0+
    • older versions can still support 4.0+ but are not actively supported

Resources

The Versions

18/11 2016

dev-master

9999999-dev

A PHP Intl library to retrieve states for a given country.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Josh England

18/11 2016

v1.0.2

1.0.2.0

A PHP Intl library to retrieve states for a given country.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Josh England

09/11 2016

v1.0.1

1.0.1.0

A PHP Intl library to retrieve states for a given country.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Josh England

08/11 2016

v1.0.0

1.0.0.0

A PHP Intl library to retrieve states for a given country.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Josh England