All Projects → steelywing → PHP-Chinese

steelywing / PHP-Chinese

Licence: other
PHP Chinese Conversion (中文繁簡轉換)

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to PHP-Chinese

alfred-chinese-converter
支持 OpenCC 簡繁體中文詞彙級別轉換、異體字轉換以及地區習慣用詞轉換的 Alfred 2 workflow
Stars: ✭ 42 (+13.51%)
Mutual labels:  chinese, chinese-translation, chinese-simplified
Icopy Site.github.io
icopy.site github mirror
Stars: ✭ 142 (+283.78%)
Mutual labels:  chinese, chinese-translation, chinese-simplified
ark-pixel-font
Open source Pan-CJK pixel font / 开源的泛中日韩像素字体
Stars: ✭ 1,767 (+4675.68%)
Mutual labels:  chinese, chinese-translation, chinese-simplified
Chinese Xinhua
📙 中华新华字典数据库。包括歇后语,成语,词语,汉字。
Stars: ✭ 8,705 (+23427.03%)
Mutual labels:  chinese, chinese-simplified, chinese-traditional
Chinese Copywriting Guidelines
Chinese copywriting guidelines for better written communication/中文文案排版指北
Stars: ✭ 10,648 (+28678.38%)
Mutual labels:  chinese, chinese-simplified, chinese-traditional
eslint-config-mingelz
A shared ESLint configuration with Chinese comments. 一份带有完整中文注释的 ESLint 规则。
Stars: ✭ 15 (-59.46%)
Mutual labels:  chinese, chinese-simplified
Microservices
Microservices from Design to Deployment 中文版 《微服务:从设计到部署》
Stars: ✭ 4,637 (+12432.43%)
Mutual labels:  chinese, chinese-translation
Springboot
Spring Boot chinese document. Spring Boot 2.1.5 中文文档
Stars: ✭ 703 (+1800%)
Mutual labels:  chinese, chinese-translation
Awesome Cn
awesome项目中文翻译,提升查阅效率
Stars: ✭ 62 (+67.57%)
Mutual labels:  chinese, chinese-translation
CSharpNamingGuidelines
C#命名规范中文版/C#编码规范中文版
Stars: ✭ 30 (-18.92%)
Mutual labels:  chinese, chinese-translation
Opentracing Specification Zh
OpenTracing标准(中文版) `zh` (Chinese) translation of the opentracing/specification
Stars: ✭ 717 (+1837.84%)
Mutual labels:  chinese, chinese-simplified
Alfred Parrot
📝 一款可以多种语言翻译的 Alfred Workflow
Stars: ✭ 89 (+140.54%)
Mutual labels:  chinese, chinese-translation
Chineseutil
PHP 中文工具包,支持汉字转拼音、拼音分词、简繁互转、数字、金额大写;QQ群:17916227
Stars: ✭ 413 (+1016.22%)
Mutual labels:  chinese, chinese-simplified
Jetbrains In Chinese
JetBrains 系列软件汉化包 关键字: Android Studio 3.5 汉化包 CLion 2019.3 汉化包 DataGrip 2019.3 汉化包 GoLand 2019.3 汉化包 IntelliJ IDEA 2019.3 汉化包 PhpStorm 2019.3 汉化包 PyCharm 2019.3 汉化包 Rider 2019.3 汉化包 RubyMine 2019.3 汉化包 WebStorm 2019.3 汉化包
Stars: ✭ 3,912 (+10472.97%)
Mutual labels:  chinese, chinese-translation
Translatorx
JetBrains 系列软件汉化包 关键字: Android Studio 3.5 汉化包 CLion 2019.3 汉化包 DataGrip 2019.3 汉化包 GoLand 2019.3 汉化包 IntelliJ IDEA 2019.3 汉化包 PhpStorm 2019.3 汉化包 PyCharm 2019.3 汉化包 Rider 2019.3 汉化包 RubyMine 2019.3 汉化包 WebStorm 2019.3 汉化包
Stars: ✭ 4,856 (+13024.32%)
Mutual labels:  chinese, chinese-translation
Php Best Practices Zh cn
PHP Best Practices(中译版)
Stars: ✭ 261 (+605.41%)
Mutual labels:  chinese, chinese-translation
Awesome Macos Command Line Zh
用你的 macOS 终端搞事情。(Use your macOS terminal shell to do awesome things. )
Stars: ✭ 117 (+216.22%)
Mutual labels:  chinese, chinese-translation
Swiftui Tutorials
A code example and translation project of SwiftUI. / 一个 SwiftUI 的示例、翻译的教程项目。
Stars: ✭ 1,992 (+5283.78%)
Mutual labels:  chinese, chinese-translation
Lightning network resources zh
💡 閃電網路資源整理
Stars: ✭ 37 (+0%)
Mutual labels:  chinese, chinese-translation
Kivy Cn
A Chinese Translation of Kivy Programming Guide Based on Kivy 1.9.2 中文翻译Kivy开发文档
Stars: ✭ 219 (+491.89%)
Mutual labels:  chinese, chinese-translation

Chinese Conversion

PHP Chinese Conversion, Simple, Lightweight (v0.2 with WikiMedia Library < 400KB)

Installation

Use Composer

composer require steelywing/chinese

Manually install

  • Clone this repo

    git clone https://github.com/steelywing/PHP-Chinese.git
    
  • Generate autoload.php, run on PHP-Chinese folder

    composer dump-autoload
    

Feature

  • Use WikiMedia or OpenCC library
  • Lightweight
  • 使用最長匹配規則

Demo

For more usage, see demo.php

require_once __DIR__ . '/vendor/autoload.php';

use SteelyWing\Chinese\Chinese;

$chinese = new Chinese();

echo $chinese->to(Chinese::ZH_HANS, '轉成簡體中文'); // 转成简体中文
echo $chinese->to(Chinese::ZH_HANT, '转成繁体中文'); // 轉成繁體中文

Switch library

Switch to OpenCC, run the following command in dict folder

git clone https://github.com/BYVoid/OpenCC.git
php import_opencc.php

Switch to WikiMedia, run the following command in dict folder

php import_wikimedia.php

License

MIT

WikiMedia License

OpenCC License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].