giggsey / locale
Locale functions required by libphonenumber-for-php
Installs: 102 298 221
Dependents: 12
Suggesters: 0
Security: 0
Stars: 602
Watchers: 6
Forks: 11
Open Issues: 1
Requires
- php: ^7.4|^8.0
Requires (Dev)
- ext-json: *
- friendsofphp/php-cs-fixer: ^3.64
- pear/pear-core-minimal: ^1.9
- pear/pear_exception: ^1.0
- pear/versioncontrol_git: ^0.5
- phing/phing: ^2.7
- php-coveralls/php-coveralls: ^2.0
- phpunit/phpunit: ^8.5|^9.5
- symfony/console: ^5.0|^6.0
- symfony/filesystem: ^5.0|^6.0
- symfony/finder: ^5.0|^6.0
- symfony/process: ^5.0|^6.0
- symfony/var-exporter: ^5.2|^6.0
README
A library providing up to date CLDR. Primarily as a requirement of libphonenumber-for-php.
Reasoning
This was created because libphonenumber-for-php required the intl extension to use the Geo Coder. The extension is not installed by default, and can be a hurdle for users. It also relies on the CLDR data provided by the Operating System, which is quite often out of date.
Generating data
Data is compiled from the latest CLDR Data as specified in CLDR-VERSION.txt.
A Phing task is used to compile the data from JSON into native PHP arrays.
It is not normally needed to compile the data, as this repository will always have the up to date CLDR data. To manually compile the data, ensure you have all the dependencies installed, then run:
vendor/bin/phing compile