1 Star 0 Fork 14

幽烛 / pinyin-php

forked from 独孤影 / pinyin-php 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 848 Bytes
一键复制 编辑 原始数据 按行查看 历史
独孤影 提交于 2015-02-22 22:13 . modify 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

usage

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

License

MIT License

1
https://gitee.com/liangzhiqian310/pinyin-php.git
git@gitee.com:liangzhiqian310/pinyin-php.git
liangzhiqian310
pinyin-php
pinyin-php
master

搜索帮助