askuiop / pinyinadv
hanzi to pinyin
dev-master
2016-06-06 05:48 UTC
Requires
- php: ^5.3.3 || ^7.0
This package is auto-updated.
Last update: 2024-12-25 21:59:21 UTC
README
简易的拼音转换...small & fast
安装
使用 Composer 安装:
composer require "askuiop/pinyinadv: dev-master"
使用
$py = Askuiop\Pinyinadv\PinyinAdv::get("诺基亚:今天我们不谈手机,谈谈5G");
nuojiya:jintianwomenbutanshouji,tantan5G
$pyAndFirstLetter = Askuiop\Pinyinadv\PinyinAdv::get("诺基亚:今天我们不谈手机,谈谈5G", true);
nuojiya:jintianwomenbutanshouji,tantan5G|njyjtwmbtsjtt