https://github.com/duguying/pinyin-php
`pinyin-php` is a php extension which could translate Chinese character into Chinese PinYin.
https://github.com/duguying/pinyin-php
php-extension pinyin-php
Last synced: 4 months ago
JSON representation
`pinyin-php` is a php extension which could translate Chinese character into Chinese PinYin.
- Host: GitHub
- URL: https://github.com/duguying/pinyin-php
- Owner: duguying
- License: mit
- Created: 2013-08-09T04:40:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T07:55:40.000Z (over 3 years ago)
- Last Synced: 2025-08-17T06:28:01.150Z (5 months ago)
- Topics: php-extension, pinyin-php
- Language: C
- Homepage:
- Size: 822 KB
- Stars: 29
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-php-extensions - pinyin-php - 汉字转拼音 (字符串处理)
README
# pinyin-php #
----------
[](https://drone.io/github.com/duguying/pinyin-php/latest)
[](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