2017 © Pedro Peláez
 

library intldata

Intl extension data in comfortable format.

image

tigrov/intldata

Intl extension data in comfortable format.

  • Thursday, March 22, 2018
  • by Tigros
  • Repository
  • 1 Watchers
  • 0 Stars
  • 234 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Intl data

The library provides easy access to Intl extension data for information about regions, sub-regions, countries, languages, locales, currencies and timezones. Also it has two additional classes for information about continents and measurement systems., (*1)

Latest Stable Version Build Status, (*2)

The library consist of static classes: - Continent - Region - Subregion - Country - Language - Locale - Currency - Timezone - MeasurementSystem, (*3)

Each of them has follow static methods:, (*4)

// Get list of codes.
ClassName::codes();

// Get a boolean indicating whether data has a code.
ClassName::has($code);

// Get list of names.
ClassName::names();

// Get name by code.
ClassName::name($code);

// E.g.
Country::names();
Currency::name('USD');
Locale::codes();
Timezone::has('America/New_York');

And some of the classes have additional static methods to get more information., (*5)

Installation

The preferred way to install this extension is through composer., (*6)

Either run, (*7)

php composer.phar require --prefer-dist tigrov/intldata

or add, (*8)

"tigrov/intldata": "~1.0"

to the require section of your composer.json file., (*9)

Addition

  • For additional information about countries (flags, codes, borders and other) use a library
    https://github.com/rinvex/country or/and https://github.com/antonioribeiro/countries
  • For divisions (country regions and states) and cities use a library
    https://github.com/MenaraSolutions/geographer
  • For more information about Intl extension data use
    http://intl.rmcreative.ru/tables?locale=en_US
    http://php.net/manual/book.intl.php

License

MIT, (*10)

The Versions

22/03 2018

dev-master

9999999-dev

Intl extension data in comfortable format.

  Sources   Download

MIT

The Requires

  • ext-intl *
  • php >=5.6.0

 

by Sergei Tigrov

language locale i18n internationalization localization currency timezone country continent intl l10n measurement region time zone

22/03 2018

1.1.3

1.1.3.0

Intl extension data in comfortable format.

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-intl *

 

by Sergei Tigrov

language locale i18n internationalization localization currency timezone country continent intl l10n measurement region time zone

05/02 2018

1.1.2

1.1.2.0

Intl extension data in comfortable format.

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-intl *

 

by Sergei Tigrov

language locale i18n internationalization localization currency timezone country continent intl l10n measurement region time zone

25/12 2017

1.1.1

1.1.1.0

Intl extension data in comfortable format.

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-intl *

 

by Sergei Tigrov

language locale i18n internationalization localization currency timezone country continent intl l10n measurement region time zone

24/12 2017

1.1.0

1.1.0.0

Intl extension data in comfortable format.

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-intl *

 

by Sergei Tigrov

language locale i18n internationalization localization currency timezone country continent intl l10n measurement region time zone

22/12 2017

1.0.0

1.0.0.0

Intl extension data in comfortable format.

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-intl *

 

by Sergei Tigrov

language locale i18n internationalization localization currency timezone country continent intl l10n measurement region time zone