defji/piglatin

将单词翻译为猪拉丁语

维护者

详细信息

github.com/defji/PigLatin

源代码

问题

安装: 10

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 1

分支: 0

公开问题: 0

类型:软件包

dev-master 2017-04-24 12:38 UTC

This package is not auto-updated.

Last update: 2024-09-29 01:48:13 UTC


README

Composer软件包,用于将英文文本翻译成猪拉丁语。

安装

composer require defji/piglatin

用法

 use defji\PigLatin\Translator;

 $useDash = TRUE; // use "-" separator in translated text
 $t = new Translator($useDash);
 
 echo $t->translate("All their equipment and instruments are alive.");
 // prints: All-way eir-thay equipment-way and-way instruments-way are-way alive-way.

 // translate single word
 echo $t->translateWord("question");
 // prints uestion-qay

测试

vendor/bin/phpunit