承接 true/punycode 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

true/punycode

最新稳定版本:v2.1.1

Composer 安装命令:

composer require true/punycode

包简介

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version

A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA).

Install

composer require true/punycode:~2.0

Usage

<?php

// Import Punycode
use TrueBV\Punycode;

$Punycode = new 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

FAQ

1. What is this library for?

This library converts a Unicode encoded domain name to a IDNA ASCII form and vice-versa.

2. Why should I use this instead of PHP's IDN Functions?

If you can compile the needed dependencies (intl, libidn) there is not much difference. But if you want to write portable code between hosts (including Windows and Mac OS), or can't install PECL extensions, this is the right library for you.

统计信息

  • 总下载量: 36.86M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 264
  • 点击次数: 5
  • 依赖项目数: 48
  • 推荐数: 0

GitHub 信息

  • Stars: 258
  • Watchers: 21
  • Forks: 42
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固