Registry / utility / symfony-intl

symfony-intl

JSON →
library8.1.0phppackagistunverified

Provides access to the localization data of the ICU library

composer require symfony/intl
INSTALL
IMPORT
SIG · SYMFONY-INTL
S
symfony-intl
utilityphpv8.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Countries
use Symfony\Component\Intl\Countries;

Get country names in English

use Symfony\Component\Intl\Countries; $countryNames = Countries::getNames('en'); echo $countryNames['US']; // United States
Debug
Known issues
gotchaRequires PHP 7.2+; ICU data may be outdated if not updated regularly
fix
Run composer update symfony/intl to get latest ICU data
affects: >=5.0.0
Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
symfony-intl — pip install symfony-intl · libregistry