giggsey/locale

Locale functions required by libphonenumber-for-php

Maintainers

👁 giggsey

Package info

github.com/giggsey/Locale

pkg:composer/giggsey/locale

Statistics

Installs: 150 390 748

Dependents: 13

Suggesters: 0

Stars: 634

Open Issues: 0

2.9.0 2026-02-24 15:32 UTC

Requires

  • php: ^8.1

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT fe741e99ae6ccbe8132f3d63d8ec89924e689778

This package is auto-updated.

Last update: 2026-05-24 16:13:16 UTC


README

👁 Total Downloads
👁 Latest Stable Version
👁 License

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. The JSON data is built 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, run the composer script 'build':

composer run build