giggsey/locale
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
The giggsey/locale
is a PHP library created to offer support for locale-dependent code execution without the need for the intl
extension. It mainly serves as a requisite library for libphonenumber-for-php
to use the Geo Coder. It was created to virtually eliminate the geographical hurdles that users of the ubiquitous intl
extension seem to encounter. One of its salient features is the provision of timely Culture Language Data Repository (CLDR) data, a global source of data that contains decipherable, standardized variations of languages and cultures.
Leveraging the functionalities of giggsey/locale
library comes with ease, particularly if you are comfortable working with Composer and Packagist. Firstly, you will need to have Composer installed on your machine. Creating a new project and requiring the giggsey/locale
package will be as convenient as running:
composer require giggsey/locale
If you wish to manually compile the data, make sure to install all the library dependencies, then in your terminal, you should execute:
vendor/bin/phing compile
Your application will now be able to benefit from the CLDR data compiled into native PHP arrays.
Comprehensive documentation for the giggsey/locale
library does not appear to be explicitly mentioned in the readme. For complete usage guidelines, it can be inferred that one has to refer to the source code available in the Giggsey/Locale GitHub repository. Given that the library's primary function is to fuel the libphonenumber-for-php
with updated CLDR data, consulting the libphonenumber-for-php documentation could also offer useful insights into leveraging the wealth of functionalities giggsey/locale
offers.