spomky-labs / php-punycode
A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)
v3.0.1
2015-10-24 15:39 UTC
Requires
- php: >=5.6
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2024-10-27 13:45:42 UTC
README
A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA).
Original code from https://github.com/true/php-punycode
The Release Process
The release process is described here.
Prerequisites
It has been successfully tested using PHP 5.4
to PHP 5.6
, PHP 7
(7.0
and nightly) and HHVM
.
Installation
The preferred way to install this library is to rely on Composer:
composer require "spomky-labs/php-punycode"
How to use
<?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
Contributing
Requests for new features, bug fixed and all other ideas to make this library useful are welcome. Please follow these best practices.
Licence
This library is release under MIT licence.