diepxuan/php-charset 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

diepxuan/php-charset

最新稳定版本:0.0.7

Composer 安装命令:

composer require diepxuan/php-charset

包简介

A php package that converts Vietnamese characters into different character set

README 文档

README

Version Downloads License

A php class that converts Vietnamese characters into different character set

Require using composer

composer require diepxuan/laravel-magento

Example

// include_once('vn_charset_conversion.php');
// $objVN = new vn_charset_conversion();
 
// echo $objVN -> convert('Tôi tên là Ngô Chí Dũng. Người đã tạo ra cái phần mềm này.');
// Output: Toi ten la Ngo Chi Dung. Nguoi da tao ra cai phan mem nay.

//echo $objVN -> convert('Tôi tên là Ngô Chí Dũng. Người đã tạo ra cái phần mềm này.','unicode','virq');
//Output: To^i te^n la\` Ngo^ Chi' Du~ng. Ngu+o+\`i d-a~ ta.o ra ca'i pha^\`n me^\`m na\`y.

vn_convert_encoding('Tôi tên là Ngô Chí Dũng. Người đã tạo ra cái phần mềm này.')
Output: Toi ten la Ngo Chi Dung. Nguoi da tao ra cai phan mem nay.

vn_convert_encoding('Tôi tên là Ngô Chí Dũng. Người đã tạo ra cái phần mềm này.','unicode','virq')
Output: To^i te^n la\` Ngo^ Chi' Du~ng. Ngu+o+\`i d-a~ ta.o ra ca'i pha^\`n me^\`m na\`y.

Available Methods

- vn_convert_encoding($input)
- vn_convert_encoding($input,'unicode','virq');
- vn_convert_encoding($input,'unicode','vnet');
- vn_convert_encoding($input,'unicode','vni');
- vn_convert_encoding($input,'unicode','ascii');
// - tolower($input) 
// - toupper($input)
// - ucfirst($input)
// - ucwords($input)

Whereas $input = a unicode string

LICENSE

The MIT License (MIT)

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-09