Locale functions required by libphonenumber-for-php

Installs: 91 623 604

Dependents: 10

Suggesters: 0

Security: 0

Stars: 589

Watchers: 6

Forks: 11

Open Issues: 0

2.6 2024-04-18 19:31 UTC

This package is auto-updated.

Last update: 2024-05-18 19:44:05 UTC


Total Downloads Latest Stable Version License

A library providing up to date CLDR. Primarily as a requirement of libphonenumber-for-php.


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