PHP code example of yoannrenard / pseudolocalization
1. Go to this page and download the library: Download yoannrenard/pseudolocalization library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
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]
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
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.