2017 © Pedro Peláez
 

package piglatin

Translate words to pig/latin

image

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

The README.md

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

The Versions

24/04 2017

dev-master

9999999-dev

Translate words to pig/latin

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Györkös Balázs