# pinyin-php **Repository Path**: duguying2008/pinyin-php ## Basic Information - **Project Name**: pinyin-php - **Description**: 将汉字翻译成拼音的php扩展 - **Primary Language**: C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 60 - **Forks**: 14 - **Created**: 2013-12-07 - **Last Updated**: 2022-10-28 ## Categories & Tags **Categories**: utils **Tags**: None ## README # pinyin-php # ---------- [![Build Status](https://drone.io/github.com/duguying/pinyin-php/status.png)](https://drone.io/github.com/duguying/pinyin-php/latest) [![travis](https://api.travis-ci.org/duguying/pinyin-php.png)](https://travis-ci.org/duguying/pinyin-php) ***pinyin-php*** is a php extension which could translate Chinese character into Chinese PinYin. ## build and install ## **linux** build the extension
```shell 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 ``` # License # MIT License