spomky-labs/php-punycode
最新稳定版本:v3.0.1
Composer 安装命令:
composer require spomky-labs/php-punycode
包简介
A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)
关键字:
README 文档
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.
统计信息
- 总下载量: 167
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-24