bobzhai/pinyin
Composer 安装命令:
composer require bobzhai/pinyin
包简介
Trunclale Chiness word ufword
README 文档
README
PHP library for interacting with CBSMS
Installation
$ composer require bobzhai/pinyin
Or add to composer.json:
"require": { "bobzhai/pinyin": "dev-master" }
then run composer update.
single use
require_once "./vendor/autoload.php"; use Bobzhai\Pinyin\Pinyin; $input_str,$upper=true,$shift_word=false /* --- ucwords ------------------------- * `@input_str` - it's string * `@upper` - output uppercase true/false * `@shift_word` - remove not no character true/false */ $code = Pinyin::ucwords('测试',true,false); echo $code // CS
License
Copyright 2022, Bobzhai. Licensed under the MIT license: https://www.opensource.org/licenses/mit-license.php
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-09