Download .zip |
Info | Documentation | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2020-03-30 (17 hours ago) | Not yet rated by the users | Total: 49 This week: 2 | All time: 9,731 This week: 224 |
Version | License | PHP version | Categories | |||
chinese-master 1.0.3 | Custom (specified... | 5 | Localization, PHP 5, Text processing |
Description | Author | |
This package is specific mainly for applications used in China .
This class can detect and convert text in Chinese. Innovation Award
|
|
Chinese traditional/simplified conversion; traditional/simplified detection.
use peterkahl\ChineseMaster\ChineseMaster;
$chm = new ChineseMaster;
/
* Does string include (1 or more) characters of traditional Chinese script?
*
*/
$isTraditional = ($chm->isTraditional('?')) ? true : false; # false
$isTraditional = ($chm->isTraditional('?')) ? true : false; # true
$isTraditional = ($chm->isTraditional('??')) ? true : false; # true
/
* Convert text in traditional script to simplified.
*
*/
echo $chm->trad2simp('???'); # ???
/
* Convert text in simplified script to traditional.
*
*/
echo $chm->simp2trad('???'); # ???
Files |
File | Role | Description | ||
---|---|---|---|---|
src (1 file) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.