2017 © Pedro Peláez
 

library php-lingua-unihan-pinyin

convert Chinese into pinyin with unihan database

image

fayland/php-lingua-unihan-pinyin

convert Chinese into pinyin with unihan database

  • Sunday, April 23, 2017
  • by fayland
  • Repository
  • 2 Watchers
  • 0 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Pinyin

Build Status, (*1)

Based on Unihan database, (*2)

use Lingua\Unihan\PinYin;

echo Pinyin::pinyin('带着希望去旅行比到达终点更美好');
// dài zhe xī wàng qù lǔ xíng bǐ dào dá zhōng diǎn gèng měi hǎo

安装

使用 Composer 安装:, (*3)

composer require fayland/php-lingua-unihan-pinyin:dev-master

或者在你的项目 composer.json 加入:, (*4)

{
    "require": {
        "fayland/php-lingua-unihan-pinyin": "dev-master"
    }
}

设置

Pinyin::set('delimiter', '-');//全局
echo Pinyin::pinyin('带着希望去旅行比到达终点更美好');
// dài-zhe-xī-wàng-qù-lǔ-xíng-bǐ-dào-dá-zhōng-diǎn-gèng-měi-hǎo
Pinyin::set('tone', false);
echo Pinyin::pinyin('带着希望去旅行,比到达终点更美好');
// dai zhe xi wang qu lu xing bi dao da zhong dian geng mei hao

SEE ALSO

https://github.com/overtrue/pinyin, (*5)

The Versions

23/04 2017

dev-master

9999999-dev https://github.com/fayland/php-lingua-unihan-pinyin

convert Chinese into pinyin with unihan database

  Sources   Download

MIT

The Requires

  • php >= 5.3
  • lib-iconv *

 

The Development Requires

pinyin chinese unihan hanzi

23/05 2015

0.0.1

0.0.1.0 https://github.com/fayland/php-lingua-unihan-pinyin

convert Chinese into pinyin with unihan database

  Sources   Download

MIT

The Requires

  • php >= 5.3
  • lib-iconv *

 

The Development Requires

pinyin chinese unihan hanzi