etechnika/idna-convert
最新稳定版本:2.0.0
Composer 安装命令:
composer require etechnika/idna-convert
包简介
Etechnika.eu idna-convert
关键字:
README 文档
README
| Branch | Unit Tests | Coverage | Dependency |
|---|---|---|---|
IDNA Convert (idna_convert.class.php) prepared to packagist.
IDNA Convert is a fork of phlyLabs pure PHP IDNA Converter (http://idnaconv.phlymail.de/) It converts internationalized domain names between UTF-8 and ASCII (punycode) notation. Orginal package is in directory lib/phlylabs.
You should used orginal package mso/idna-convert (https://github.com/phlylabs/idna-convert)
Installation
Via composer
Add the package to your composer.json file:
{
"require": {
"etechnika/idna-convert": "1.0.*"
}
}
Run composer.phar update.
Usage
The following example describes basic usage.
<?php
require_once('vendor/autoload.php');
use Etechnika\IdnaConvert\IdnaConvert as IdnaConvert;
IdnaConvert::encodeString( 'żółw.pl' ); // prints 'xn--w-uga1v8h.pl'
IdnaConvert::decodeString( 'xn--w-uga1v8h.pl' ); // prints 'żółw.pl'
?>
统计信息
- 总下载量: 391.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 1
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: LGPL-2.1
- 更新时间: 2013-10-03