php-pinyin | A PHP extension converting Chinese characters to Pinyin
kandi X-RAY | php-pinyin Summary
kandi X-RAY | php-pinyin Summary
php-pinyin is a C++ library. php-pinyin has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.
A PHP extension converting Chinese characters to Pinyin.
A PHP extension converting Chinese characters to Pinyin.
Support
Quality
Security
License
Reuse
Support
php-pinyin has a low active ecosystem.
It has 85 star(s) with 25 fork(s). There are 13 watchers for this library.
It had no major release in the last 6 months.
There are 0 open issues and 4 have been closed. On average issues are closed in 5 days. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of php-pinyin is current.
Quality
php-pinyin has 0 bugs and 0 code smells.
Security
php-pinyin has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
php-pinyin code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
php-pinyin does not have a standard license declared.
Check the repository for any license declaration and review the terms closely.
Without a license, all rights are reserved, and you cannot use the library in your applications.
Reuse
php-pinyin releases are not available. You will need to build from source code and install.
Installation instructions, examples and code snippets are available.
It has 49 lines of code, 1 functions and 5 files.
It has low code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of php-pinyin
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of php-pinyin
php-pinyin Key Features
No Key Features are available at this moment for php-pinyin.
php-pinyin Examples and Code Snippets
No Code Snippets are available at this moment for php-pinyin.
Community Discussions
No Community Discussions are available at this moment for php-pinyin.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php-pinyin
Currently you have two ways to use php-pinyin. One depends on PHP-CPP, while another one is plain php extenstion which works with php 7.x. (For php 5.x support, please checkout the branch legacy).
Install [PHP-CPP](https://github.com/CopernicaMarketingSoftware/PHP-CPP) or its [LEGACY Version](https://github.com/CopernicaMarketingSoftware/PHP-CPP-LEGACY). Before that, you need to change the Makefile,,, because PHP-CPP was written with C11, but libpinyin was written with C98,,, So you should build PHP-CPP with -D_GLIBCXX_USE_CXX11_ABI=0 option, which means "Do not use Cxx11’s Application Binary Interface".
Install [PHP-CPP](https://github.com/CopernicaMarketingSoftware/PHP-CPP) or its [LEGACY Version](https://github.com/CopernicaMarketingSoftware/PHP-CPP-LEGACY). Before that, you need to change the Makefile,,, because PHP-CPP was written with C11, but libpinyin was written with C98,,, So you should build PHP-CPP with -D_GLIBCXX_USE_CXX11_ABI=0 option, which means "Do not use Cxx11’s Application Binary Interface"
cd /path/to/php-pinyin/cpp-ext
make
make install
Here /path/to/pinyin is the directory where you copied libpinyin to.
cd /path/to/php-pinyin/ext
/path/to/php/bin/phpize
./configure --with-php-config=/path/to/php/bin/php-config --with-baidu-pinyin=/path/to/pinyin
make
make install
Install [PHP-CPP](https://github.com/CopernicaMarketingSoftware/PHP-CPP) or its [LEGACY Version](https://github.com/CopernicaMarketingSoftware/PHP-CPP-LEGACY). Before that, you need to change the Makefile,,, because PHP-CPP was written with C11, but libpinyin was written with C98,,, So you should build PHP-CPP with -D_GLIBCXX_USE_CXX11_ABI=0 option, which means "Do not use Cxx11’s Application Binary Interface".
Install [PHP-CPP](https://github.com/CopernicaMarketingSoftware/PHP-CPP) or its [LEGACY Version](https://github.com/CopernicaMarketingSoftware/PHP-CPP-LEGACY). Before that, you need to change the Makefile,,, because PHP-CPP was written with C11, but libpinyin was written with C98,,, So you should build PHP-CPP with -D_GLIBCXX_USE_CXX11_ABI=0 option, which means "Do not use Cxx11’s Application Binary Interface"
cd /path/to/php-pinyin/cpp-ext
make
make install
Here /path/to/pinyin is the directory where you copied libpinyin to.
cd /path/to/php-pinyin/ext
/path/to/php/bin/phpize
./configure --with-php-config=/path/to/php/bin/php-config --with-baidu-pinyin=/path/to/pinyin
make
make install
Support
Issues and contributions are welcome.
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page