wijourdil/php-simple-furiganizer
最新稳定版本:1.0.0
Composer 安装命令:
composer require wijourdil/php-simple-furiganizer
包简介
A simple PHP package to generate japanese text with furigana for a given word and reading.
README 文档
README
This package is a simple tool to generate japanese text with furigana for a given word and reading.
雨の日(Text) + あめのひ(Reading) ⇒ 雨(あめ)の日(ひ)
Installation
Install the package via composer:
composer require wijourdil/php-simple-furiganizer
Usage
First, simply import the Furiganizer class:
use Wijourdil\PhpSimpleFuriganizer\Furiganizer;
Then, you just have to instantiate a new Furiganizer and generate the output in the format you want:
$furiganizer = new Furiganizer('雨の日', 'あめのひ'); echo "Output in text is " . $furiganizer->toBrackets(); echo "Output in HTML is " . $furiganizer->toHtml();
Will output :
Output in text is 雨[あめ]の 日[ひ] Output in HTML is 雨(あめ)の日(ひ)
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-05-23