Registry / utility / symfony-polyfill-intl-messageformatter

symfony-polyfill-intl-messageformatter

JSON →
library1.38.0phppackagistunverified

Symfony polyfill for intl's MessageFormatter class and related functions.

composer require symfony/polyfill-intl-messageformatter
INSTALL
IMPORT
SIG · SYMFONY-POLYFILL-I
S
symfony-polyfill-intl-messageformatter
utilityphpv1.38.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.

MessageFormatter
use Symfony\Polyfill\Intl\MessageFormatter\MessageFormatter;

Format a message using the polyfill.

<?php use Symfony\Polyfill\Intl\MessageFormatter\MessageFormatter; $formatter = new MessageFormatter('en_US', '{0}'); echo $formatter->format(['Hello']);
Debug
Known issues
gotchaThis polyfill is only needed if the intl extension is not installed.
fix
Install the intl PHP extension for better performance.
affects: >=1.0.0
Upgrade
Version history
1.38.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

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