git clone https://github.com/BYVoid/OpenCC.git --depth 1 cd OpenCC make make install
git clone https://github.com/NauxLiu/opencc4php.git --depth 1 cd opencc4php phpize ./configure make make install
extension=opencc.so
ln -s /usr/lib/libopencc.so.2 /usr/lib64/libopencc.so.2
$od = opencc_open("tw2sp.json"); $text = opencc_convert("中文繁簡體資料庫轉換", $od); echo $text; opencc_close($od);
中文繁简体数据库转换