| Recommend this page to a friend! | 
| Info | Documentation | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 69 | All time:  10,313 This week: 455 | ||||
| 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('???'); # ???
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
| 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.