Skip to content

Commit 7ca5b75

Browse files
committed
minor #11257 Added docs for the missing Intl polyfills (javiereguiluz)
This PR was squashed before being merged into the 3.4 branch (closes #11257). Discussion ---------- Added docs for the missing Intl polyfills Related to symfony/marketing#484. Commits ------- 9ea95b7 Added docs for the missing Intl polyfills
2 parents 3d1b501 + 9ea95b7 commit 7ca5b75

File tree

5 files changed

+113
-11
lines changed

5 files changed

+113
-11
lines changed

components/polyfill_intl_grapheme.rst

Lines 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

Lines 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

Lines 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
Lines 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

Lines 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)