Fast IDN Punycode function. PHP 5.2+ http://belousovv.ru/myscript/phpIDN
php
Перейти к файлу
2017-11-24 12:08:58 +03:00
.travis.yml add idn_to_ascii and idn_to_utf8 2017-11-24 11:45:36 +03:00
idna.php add idn_to_ascii and idn_to_utf8 2017-11-24 11:45:36 +03:00
LICENSE add LICENSE file 2017-11-24 09:31:08 +03:00
phpunit.xml add phpunit.xml 2017-11-24 11:27:17 +03:00
README.md add readme file 2017-11-24 12:08:58 +03:00
Test.php fix test 2017-11-24 11:40:55 +03:00

PHP IDN Punycode

Encode and decode IDN Punycode if not exists internal php functions idn_to_ascii and idn_to_utf8. Functions use algorithm by rfc 3492.

Build Status

function EncodePunycodeIDN( $value ) string

Encode UTF-8 domain name to IDN Punycode

Parameters:

string $value Domain name

Returns:

Encoded Domain name

function DecodePunycodeIDN( $value ) string

Decode IDN Punycode to UTF-8 domain name

Parameters:

string $value Punycode

Returns:

Domain name in UTF-8 charset