lixunguan/pinyin

1 2014-10-06 04:54 UTC

This package is not auto-updated.

Last update: 2024-10-01 04:18:58 UTC


README

安装

"lixunguan/pinyin": "*" 添加到 composer.json

composer.phar install

获取拼音首字母

  return Pinyin::make('我们')->firstLetter(); // 输出 wm

获取完整拼音

  return Pinyin::make('我们')->full(); // 输出 women