2017 © Pedro Peláez
 

library intl

Provides extra helpers for Symfony's Intl RegionBundle

image

tentwofour/intl

Provides extra helpers for Symfony's Intl RegionBundle

  • Tuesday, September 29, 2015
  • by tentwofour
  • Repository
  • 1 Watchers
  • 0 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Intl Component

Just a few helpers, good for use when dealing with Canadian and USA provinces/states, forms, and persistence., (*1)

$provinces = CountryHelper::getCanadianProvinces();

Returns: ```php [ 'AB' => 'Alberta', 'BC' => 'British Columbia', 'MB' => 'Manitoba', 'NB' => 'New Brunswick', 'NL' => 'Newfoundland and Labrador', 'NS' => 'Nova Scotia', 'NU' => 'Nunavut', 'NT' => 'Northwest Territories', 'ON' => 'Ontario', 'PE' => 'Prince Edward Island', 'QC' => 'Quebec', 'SK' => 'Saskatchewan', 'YT' => 'Yukon' ];, (*2)


```php $provinces = CountryHelper::getCanadianProvinceAbbreviations();

Returns:, (*3)

[
    0 => 'AB',
    1 => 'BC',
    2 => 'MB',
    3 => 'NB',
    4 => 'NL',
    5 => 'NS',
    6 => 'NU',
    7 => 'NT',
    8 => 'ON',
    9 => 'PE',
    10 => 'QC',
    11 => 'SK',
    12 => 'YT'
];

The USA helper methods behave in the same manner., (*4)

The Versions

29/09 2015

dev-master

9999999-dev https://github.com/tentwofour/intl

Provides extra helpers for Symfony's Intl RegionBundle

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

intl ten24 tentwofour

29/09 2015

1.0.0

1.0.0.0 https://github.com/tentwofour/intl

Provides extra helpers for Symfony's Intl RegionBundle

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

intl ten24 tentwofour