Skip to content

Commit 266c1a8

Browse files
committed
Merge pull request #33 from jeremykendall/fix/issue-32
Adds ext-intl to composer "require" key, updates README. Closes #32.
2 parents add2b07 + 99ee305 commit 266c1a8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ $publicSuffix = $url->host->publicSuffix;
121121
support was added in version `1.4.0`. Both unicode domains and their ASCII equivalents
122122
are supported.
123123

124+
**IMPORTANT**: PHP's [intl](http://php.net/manual/en/book.intl.php) extension is
125+
required for the [IDN functions](http://php.net/manual/en/ref.intl.idn.php).
126+
124127
#### Unicode
125128

126129
Parsing IDNA hosts is no different that parsing standard hosts. Setting `$host = 'Яндекс.РФ';` (Russian-Cyrillic)

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
],
2121
"require": {
2222
"php": ">=5.3.0",
23-
"ext-curl": "*"
23+
"ext-curl": "*",
24+
"ext-intl": "*"
2425
},
2526
"require-dev": {
2627
"mikey179/vfsStream": "1.2.*",

0 commit comments

Comments
 (0)