1. Go to this page and download the library: Download willskates/translator 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/ */
willskates / translator example snippets
$translator = new Translator();
$translator->useTranslation('Hello', 'Hallo');
$hello = $translator->translate('Hello');
//The value of $hello is 'Hallo'.
$german = $translator->translations();
//$german is an array, assuming they were set it will contain ['Hello' => 'Hallo', 'Goodbye' => 'auf Wiedersehen'].