defji/piglatin

Translate words to pig/latin

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

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

This package is not auto-updated.

Last update: 2025-06-22 05:09:26 UTC


README

Composer package to translate english text to PigLatin.

Install

composer require defji/piglatin

Usage

 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

Testing

vendor/bin/phpunit