A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)
A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA).
Original code from https://github.com/true/php-punycode
The release process is described here.
It has been successfully tested using
PHP 5.4 to
PHP 7 (
7.0 and nightly) and
The preferred way to install this library is to rely on Composer:
composer require "spomky-labs/php-punycode"
<?php // Import Punycode use SpomkyLabs\Punycode; var_dump(Punycode::encode('renangonçalves.com')); // outputs: xn--renangonalves-pgb.com var_dump(Punycode::decode('xn--renangonalves-pgb.com')); // outputs: renangonçalves.com
Requests for new features, bug fixed and all other ideas to make this library useful are welcome. Please follow these best practices.
This library is release under MIT licence.