Registry / utility / symfony-polyfill-intl-idn

symfony-polyfill-intl-idn

JSON →
library1.38.1phppackagistunverified

Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions.

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

Idn
use Symfony\Polyfill\Intl\Idn\Idn;

Convert internationalized domain names to ASCII using the polyfill.

use Symfony\Polyfill\Intl\Idn\Idn; $ascii = Idn::idn_to_ascii('münchen.de'); echo $ascii; // xn--mnchen-3ya.de
Debug
Known issues
breakingRequires PHP 7.1 or higher for the polyfill to work.
fix
Ensure your PHP version is at least 7.1.
affects: <1.0.0
Upgrade
Version history
1.38.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
symfony-polyfill-intl-idn — pip install symfony-polyfill-intl-idn · libregistry