Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.33 KB

polyfill_intl_messageformatter.rst

File metadata and controls

48 lines (33 loc) · 1.33 KB
.. index::
    single: Polyfill
    single: MessageFormatter
    single: Components; Polyfill

The Symfony Polyfill / Intl MessageFormatter Component

This component provides a fallback implementation for the MessageFormatter class to users who run PHP versions without the intl extension.

Installation

$ composer require symfony/polyfill-intl-messageformatter

Usage

Once this component is installed in your application, you can use the following classes and functions, no matter if the PHP intl extension is installed or not in your server.

Provided Classes

Provided Functions

.. seealso::

    Symfony provides more polyfills for other classes and functions related to
    the Intl PHP extension:
    :doc:`polyfill-intl-grapheme </components/polyfill_intl_grapheme>`,
    :doc:`polyfill-intl-idn </components/polyfill_intl_idn>`,
    :doc:`polyfill-intl-icu </components/polyfill_intl_icu>`,
    and :doc:`polyfill-intl-normalizer </components/polyfill_intl_normalizer>`.