2017 © Pedro Peláez
 

library pseudolocalization

Pseudo language generator

image

yoannrenard/pseudolocalization

Pseudo language generator

  • Tuesday, April 10, 2018
  • by yoannrenard
  • Repository
  • 1 Watchers
  • 0 Stars
  • 120 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2300 % Grown

The README.md

Pseudolocalization

Build Status, (*1)

Pseudo language generator, (*2)

Requirements

  • PHP 5.6 or higher;

How to Install

$ composer require yoannrenard/pseudolocalization

Test it

$ vendor/bin/phpunit

Usage

Using the default pseudolocalization translation :, (*3)

use YoannRenard\Pseudolocalization\TranslatorFactory;

$translator = TranslatorFactory::create();

echo $translator->trans('Lorem ipsum');
  // [£ôřè₥ ïƥƨú₥ Lorem ip]

Using a config DTO class :, (*4)

use YoannRenard\Pseudolocalization\Config;
use YoannRenard\Pseudolocalization\TranslatorFactory;

$translator = TranslatorFactory::create(new Config(true, 'upper', true, true));

echo $translator->trans('Lorem ipsum');
  // [£ÓRÉM ÌÞ§ÛM Lorem]

Using the whole bunch of transformers :, (*5)

use YoannRenard\Pseudolocalization\Translator;
use YoannRenard\Pseudolocalization\Transformer\TransformerChain;
use YoannRenard\Pseudolocalization\Transformer\TransformerFactory;

$translator = new Translator(new TransformerChain([
    TransformerFactory::create('alternate_case'),
    TransformerFactory::create('diacritics'),
]));

echo $translator->trans('Lorem ipsum');
  // £ôRèM Ìƥ§úM

The Versions

10/04 2018

dev-master

9999999-dev

Pseudo language generator

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Yoann RENARD

10/04 2018

v1.0.0

1.0.0.0

Pseudo language generator

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Yoann RENARD