bobzhai / pinyin
Trunclale Chiness word ufword
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bobzhai/pinyin
This package is auto-updated.
Last update: 2025-10-10 05:53:22 UTC
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