1. Go to this page and download the library: Download azwhosting/php_translate 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/ */
azwhosting / php_translate example snippets
use PhpTranslate\Translate;
$translator = new Translate();
return [
'welcome' => 'Welcome',
'goodbye' => 'Goodbye',
// Ajoutez plus de traductions ici
];
return [
'welcome' => 'Bienvenue',
'goodbye' => 'Au revoir',
// Ajoutez plus de traductions ici
];