Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7fcc58c

Browse filesBrowse files
committed
Merge branch '4.2'
* 4.2: Added docs for the missing Intl polyfills
2 parents 2d9ba82 + 40453ad commit 7fcc58c
Copy full SHA for 7fcc58c

5 files changed

+113
-11
lines changed

‎components/polyfill_intl_grapheme.rst

Copy file name to clipboardExpand all lines: components/polyfill_intl_grapheme.rst
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ Provided Functions
5050

5151
.. seealso::
5252

53-
The :doc:`polyfill-intl-icu </components/polyfill_intl_icu>` and
54-
:doc:`polyfill-intl-normalizer </components/polyfill_intl_normalizer>`
55-
components provide polyfills for other classes and functions related to the
56-
Intl PHP extension.
53+
Symfony provides more polyfills for other classes and functions related to
54+
the Intl PHP extension:
55+
:doc:`polyfill-intl-icu </components/polyfill_intl_icu>`,
56+
:doc:`polyfill-intl-idn </components/polyfill_intl_idn>`,
57+
:doc:`polyfill-intl-messageformatter </components/polyfill_intl_messageformatter>`,
58+
and :doc:`polyfill-intl-normalizer </components/polyfill_intl_normalizer>`.
5759

5860
.. _`PHP intl extension`: https://secure.php.net/manual/en/book.intl.php

‎components/polyfill_intl_icu.rst

Copy file name to clipboardExpand all lines: components/polyfill_intl_icu.rst
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ Provided Functions
4646

4747
.. seealso::
4848

49-
The :doc:`polyfill-intl-grapheme </components/polyfill_intl_grapheme>` and
50-
:doc:`polyfill-intl-normalizer </components/polyfill_intl_normalizer>`
51-
components provide polyfills for other classes and functions related to the
52-
Intl PHP extension.
49+
Symfony provides more polyfills for other classes and functions related to
50+
the Intl PHP extension:
51+
:doc:`polyfill-intl-grapheme </components/polyfill_intl_grapheme>`,
52+
:doc:`polyfill-intl-idn </components/polyfill_intl_idn>`,
53+
:doc:`polyfill-intl-messageformatter </components/polyfill_intl_messageformatter>`,
54+
and :doc:`polyfill-intl-normalizer </components/polyfill_intl_normalizer>`.
5355

5456
.. _`PHP intl extension`: https://secure.php.net/manual/en/book.intl.php

‎components/polyfill_intl_idn.rst

Copy file name to clipboard
+45Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
.. index::
2+
single: Polyfill
3+
single: IDN
4+
single: Components; Polyfill
5+
6+
The Symfony Polyfill / Intl IDN Component
7+
=========================================
8+
9+
This component provides a collection of functions related to IDN when the
10+
Intl extension is not installed.
11+
12+
Installation
13+
------------
14+
15+
.. code-block:: terminal
16+
17+
$ composer require symfony/polyfill-intl-idn
18+
19+
Alternatively, you can clone the `<https://github.com/symfony/polyfill-intl-idn>`_ repository.
20+
21+
.. include:: /components/require_autoload.rst.inc
22+
23+
Usage
24+
-----
25+
26+
Once this component is installed in your application, you can use the following
27+
functions, no matter if the `PHP intl extension`_ is installed or not in your
28+
server.
29+
30+
Provided Functions
31+
~~~~~~~~~~~~~~~~~~
32+
33+
* :phpfunction:`idn_to_ascii`
34+
* :phpfunction:`idn_to_utf8`
35+
36+
.. seealso::
37+
38+
Symfony provides more polyfills for other classes and functions related to
39+
the Intl PHP extension:
40+
:doc:`polyfill-intl-grapheme </components/polyfill_intl_grapheme>`,
41+
:doc:`polyfill-intl-icu </components/polyfill_intl_icu>`,
42+
:doc:`polyfill-intl-messageformatter </components/polyfill_intl_messageformatter>`,
43+
and :doc:`polyfill-intl-normalizer </components/polyfill_intl_normalizer>`.
44+
45+
.. _`PHP intl extension`: https://secure.php.net/manual/en/book.intl.php
+50Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
.. index::
2+
single: Polyfill
3+
single: MessageFormatter
4+
single: Components; Polyfill
5+
6+
The Symfony Polyfill / Intl MessageFormatter Component
7+
======================================================
8+
9+
This component provides a fallback implementation for the ``MessageFormatter``
10+
class to users who run PHP versions without the ``intl`` extension.
11+
12+
Installation
13+
------------
14+
15+
.. code-block:: terminal
16+
17+
$ composer require symfony/polyfill-intl-messageformatter
18+
19+
Alternatively, you can clone the `<https://github.com/symfony/polyfill-intl-messageformatter>`_ repository.
20+
21+
.. include:: /components/require_autoload.rst.inc
22+
23+
Usage
24+
-----
25+
26+
Once this component is installed in your application, you can use the following
27+
classes and functions, no matter if the `PHP intl extension`_ is installed or
28+
not in your server.
29+
30+
Provided Classes
31+
~~~~~~~~~~~~~~~~
32+
33+
* :phpclass:`IntlException`
34+
* :phpclass:`MessageFormatter`
35+
36+
Provided Functions
37+
~~~~~~~~~~~~~~~~~~
38+
39+
* :phpfunction:`msgfmt_format_message`
40+
41+
.. seealso::
42+
43+
Symfony provides more polyfills for other classes and functions related to
44+
the Intl PHP extension:
45+
:doc:`polyfill-intl-grapheme </components/polyfill_intl_grapheme>`,
46+
:doc:`polyfill-intl-idn </components/polyfill_intl_idn>`,
47+
:doc:`polyfill-intl-icu </components/polyfill_intl_icu>`,
48+
and :doc:`polyfill-intl-normalizer </components/polyfill_intl_normalizer>`.
49+
50+
.. _`PHP intl extension`: https://secure.php.net/manual/en/book.intl.php

‎components/polyfill_intl_normalizer.rst

Copy file name to clipboardExpand all lines: components/polyfill_intl_normalizer.rst
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ Provided Functions
4040

4141
.. seealso::
4242

43-
The :doc:`polyfill-intl-grapheme </components/polyfill_intl_grapheme>` and
44-
:doc:`polyfill-intl-icu </components/polyfill_intl_icu>` components provide
45-
polyfills for other classes and functions related to the Intl PHP extension.
43+
Symfony provides more polyfills for other classes and functions related to
44+
the Intl PHP extension:
45+
:doc:`polyfill-intl-grapheme </components/polyfill_intl_grapheme>`,
46+
:doc:`polyfill-intl-idn </components/polyfill_intl_idn>`,
47+
:doc:`polyfill-intl-icu </components/polyfill_intl_icu>`,
48+
and :doc:`polyfill-intl-messageformatter </components/polyfill_intl_messageformatter>`.
4649

4750
.. _`PHP intl extension`: https://secure.php.net/manual/en/book.intl.php

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.