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
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ~5.7
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