承接 hawkiq/enjp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

hawkiq/enjp

最新稳定版本:v0.1

Composer 安装命令:

composer require hawkiq/enjp

包简介

Laravel Package to Convert English Words to Romanji written in English

README 文档

README

Omygitto

Enjp

Enjp is a Laravel package for converting English text to Japanese romaji. This package provides an easy-to-use function for transliterating English text to its Romanized Japanese representation.

Requirements

  • PHP 7.3 or higher.
  • Composer for dependency management.

Installation

You can install the package via Composer from Packagist. Run the following command in your Laravel project:

composer require hawkiq/enjp

Usage

Using the Static Method

You can use the package via a static method in your application. Here’s how:

  1. Import the Class

    In your controller or route, import the Enjp class:

    use Hawkiq\Enjp\Enjp;
  2. Call the Static Method Use the romanji method to convert English text to romaji:

    $result = Enjp::romanji('Adventure Island');
    echo $result;  // Outputs: Adobenchāairando
  3. Using the Helper Function The package also provides a global helper function for convenience. Here’s how to use it:

    $result = enjp('Adventure Island');
    echo $result;  // Outputs: Adobenchāairando

License

This project is Public feel free to pull request any changes.

Copyright

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-17