定制 spomky-labs/php-punycode 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Build Status Scrutinizer Code Quality

Coverage Status

SensioLabsInsight

Latest Stable Version Total Downloads Latest Unstable Version License

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

This library needs at least PHP 5.4+.

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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 46
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-24