package piglatin
Translate words to pig/latin
defji/piglatin
Translate words to pig/latin
- Monday, April 24, 2017
- by dfj
- Repository
- 1 Watchers
- 0 Stars
- 4 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
PigLatin
Composer package to translate english text to PigLatin., (*1)
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
dev-master
9999999-dev
Translate words to pig/latin
Sources
Download
MIT
The Requires
The Development Requires
by
Györkös Balázs