定制 wijourdil/php-simple-furiganizer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-05-23