PHP code example of easyconn / chinese
1. Go to this page and download the library: Download easyconn/chinese library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
easyconn / chinese example snippets
use SteelyWing\Chinese\Chinese;
$chinese = new Chinese();
echo $chinese->to(Chinese::ZH_HANS, '轉成簡體中文'); // 转成简体中文
echo $chinese->to(Chinese::ZH_HANT, '转成繁体中文'); // 轉成繁體中文
composer dump-autoload
sh
git clone https://github.com/BYVoid/OpenCC.git
php import_opencc.php
sh
php import_wikimedia.php