文字转拼音
$content="神经病啊";
$pinyin = new \Overtrue\Pinyin\Pinyin('Overtrue\Pinyin\MemoryFileDictLoader');
$v['Pinyin'] = $content;
$v['py'] = $pinyin->abbr($content, '');
$v['pinyin'] = $pinyin->permalink($content, '');
return $v;
返回结果
![](https://img.kancloud.cn/84/cb/84cb732ce73abd135d95c325c7ea1dcb_939x85.png)
htmp的封装方法,curl等
$result = \GuzzleHttp\json_decode($result, true);
详情:[https://guzzle-cn.readthedocs.io/zh_CN/latest/](https://guzzle-cn.readthedocs.io/zh_CN/latest/)