Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 11 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T07:55:40.000Z (over 2 years ago)
- Last Synced: 2024-05-22T20:06:24.071Z (8 months ago)
- Topics: php-extension, pinyin-php
- Language: C
- Homepage:
- Size: 822 KB
- Stars: 29
- Watchers: 4
- 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 #
----------
[![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