grifrin/palladius

用于将汉字(拼音)转录成西里尔字母(使用Palladius系统)的PHP库。

1.0.0 2016-12-04 05:12 UTC

This package is not auto-updated.

Last update: 2024-09-28 20:25:20 UTC


README

Latest Stable Version Total Downloads

用于将汉字(拼音)转录成西里尔字母(使用Palladius系统)的PHP库

安装

Composer

composer require "grifrin/palladius"

用法

use GRiFrin\Palladius\Palladius;

$palladius = new Palladius();
$palladius->convert(array('cheng','long'));
// return ['чэн','лун']
$palladius->convert(array('cheng','long'), true);
// return [['pinyin'=>'cheng','cyrillic'=>'чэн'],['pinyin'=>'long','cyrillic'=>'лун']]

许可

MIT