duguying / Pinyin Php
Licence: mit
`pinyin-php` is a php extension which could translate Chinese character into Chinese PinYin.
Stars: ✭ 26
Programming Languages
c
50402 projects - #5 most used programming language
Labels
Projects that are alternatives of or similar to Pinyin Php
secp256k1-php
PHP bindings for bitcoin-core/secp256k1
Stars: ✭ 55 (+111.54%)
Mutual labels: php-extension
ext-chunkutils2
PHP extension in C++ implementing the modern Minecraft: Bedrock subchunk format for PocketMine-MP 4.0
Stars: ✭ 26 (+0%)
Mutual labels: php-extension
Study
手把手教你写PHP协程扩展(teach you to write php coroutine extension by hand)
Stars: ✭ 285 (+996.15%)
Mutual labels: php-extension
tast-process
An extension providing multi process for PHP 7
Stars: ✭ 27 (+3.85%)
Mutual labels: php-extension
Dev-Tools-Magento-2-Module
A collection of utilities meant to improve the experience of developing modules for Magento without breaking existing functionality.
Stars: ✭ 18 (-30.77%)
Mutual labels: php-extension
php aho corasick
Aho-Corasick string search algorithm PHP extension implementation.
Stars: ✭ 45 (+73.08%)
Mutual labels: php-extension
Zephir
Zephir is a compiled high level language aimed to the creation of C-extensions for PHP.
Stars: ✭ 3,086 (+11769.23%)
Mutual labels: php-extension
RapidPM
High performance extension that implements parts of PocketMine-MP (PMMP) with Zephir
Stars: ✭ 31 (+19.23%)
Mutual labels: php-extension
PHP-CPP-documentation
The documentation in chinese of PHP-CPP.
Stars: ✭ 35 (+34.62%)
Mutual labels: php-extension
Skyapm Php Sdk
The PHP instrument agent for Apache SkyWalking
Stars: ✭ 292 (+1023.08%)
Mutual labels: php-extension
pinyin-php
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].