grifrin/palladius

PHP library for transcribing Chinese characters (pinyin) into the Cyrillic alphabet (using Palladius system).

1.0.0 2016-12-04 05:12 UTC

This package is not auto-updated.

Last update: 2024-11-09 21:06:49 UTC


README

Latest Stable Version Total Downloads

PHP library for transcribing Chinese characters (Pinyin) into the Cyrillic alphabet (using Palladius system)

Install

Composer:

composer require "grifrin/palladius"

Usage

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'=>'лун']]

License

MIT