你有几个邮箱呢?你是怎么分配它们的用途呢?码云账号增加多邮箱支持!
指數
0
Watch 20 Star 59 Fork 14

独孤影 / pinyin-phpCMIT

加入碼雲
與超過 200 萬 開發者一起發現、參與優秀開源項目,私有倉庫也完全免費 :)
免費加入
将汉字翻译成拼音的php扩展 展開 收起

克隆/下載
Loading...
README.md

pinyin-php


Build Status travis

pinyin-php is a php extension which could translate Chinese character into Chinese PinYin.

build and install

linux

build the extension

phpize
configure
make
make test

configuration

add following into php.ini

pinyin.chars=/path/to/chars.csv
pinyin.words=/path/to/words.csv
pinyin.locale="en_GB.UTF-8"		[optional]

usage

<?php
echo pinyin("汉"),"\n";
echo pinyin("わたしわ阿飞, and my English name is Rex Lee. 网名是独孤影! ^_^。下面是一段多音分词歧义测试,这个人无伤无臭味。"),"\n";
?>

License

MIT License

點評 ( 2 )

你可以在登錄後,發表評論

搜索幫助