Pinyin 基于CC-CEDICT词典的中文转拼音工具,更准确的支持多音字的汉字转拼音解决方案。 安装 使用Composer安装: composerrequire"overtrue/pinyin:~3.0" 使用 拼音数组 useOvertrue\Pinyin\Pinyin; $pinyin=newPinyin(); $pinyin->convert('带着希望去旅行,比到达终点更美好'); //["dai","zhe","xi","wang","qu","lu","xing","bi","da