lixunguan/pinyin

chinese to pinyin

1 2014-10-06 04:54 UTC

This package is not auto-updated.

Last update: 2024-12-10 05:24:57 UTC


README

安装

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

composer.phar install

获取拼音首字母

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

获取完整拼音

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