定制 diamochang/i7h-php 二次开发

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

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

diamochang/i7h-php

Composer 安装命令:

composer require diamochang/i7h-php

包简介

Implement RimoChan's own i18nglish in PHP without worrying about XSS attacks.

README 文档

README

简体中文 | 繁體中文

PHP CI Scrutinizer Code Quality PHP Version Support Packagist Stars

This project can implement i18nglish, which was created by RimoChan, in PHP without worrying about XSS attacks.

How it works

The example text is taken from Richard M. Stallman's Free Software Song lyrics.

Before:

When we have enough free software
At our call, hackers, at our call,
We'll kick out those dirty licenses
Ever more, hackers, ever more.

After:

W2n we h2e e4h f2e s6e
At o1r c2l, h5s, at o1r c2l,
We'll k2k o1t t3e d3y l6s
E2r m2e, h5s, e2r m2e.

(Note: I added the apostrophe in "We'll" myself, it was originally lost in the escaping process.)

How to use it

  1. git clone the entire repository. If it's slow, try changing hub to ee in the Git URL to use the Gitee mirror. You can also use Composer: composer require diamochang/i7h-php.
  2. Move i7h.php to your project. If you installed it with Composer, this step can be skipped.
  3. Add the dependency to the code you want to use:
// Please refer to the actual location of i7h.php.
require_once "i7h.php";
  1. Call it with the following code:
// Instantiate the i7h class
$i7h = new i7h();

// Call the i18n method to process the string and output the result.
echo $i7h->i18n('what you want to convert')
  1. The job is done.

Known Issues

  • English apostrophe may be lost in the escape process

Contributions

PRs are welcome, Issues are welcome.

License

MIT (Expat) License

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固