承接 fomvasss/laravel-punycode 相关项目开发

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

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

fomvasss/laravel-punycode

最新稳定版本:1.4.0

Composer 安装命令:

composer require fomvasss/laravel-punycode

包简介

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

README 文档

README

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

Install

Run:

composer require "fomvasss/laravel-punycode"

For Laravel < 5.5 Add in ServiceProvider to the providers array in config/app.php

  Fomvasss\Punycode\PunycodeServiceProvider::class,

Publish configs (optional):

php artisan vendor:publish --provider="Fomvasss\Punycode\PunycodeServiceProvider" --tag="config"

Usage

Usage facade

You can now using the facade, using the PSR-3 levels (encode, decode): Add in your class the facade:

use Fomvasss\Punycode\Facades\Punycode;

Example usage:

var_dump(Punycode::encode('веб-вест.сайт'));
// outputs: xn----9sbccmd8fi.xn--80aswg;

var_dump(Punycode::decode('xn----9sbccmd8fi.xn--80aswg'));
// outputs: веб-вест.сайт

#Usage helper functions

punycode_encode('веб-вест.сайт');
punycode_decode('xn----9sbccmd8fi.xn--80aswg');

Links:

License

Faker is released under the MIT Licence. See the bundled LICENSE file for details.

统计信息

  • 总下载量: 41.16k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固