1. Go to this page and download the library: Download lkt/translations 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 Lkt\Translations\Translations;
$languages = Translations::getAvailableLanguages(); // An array => ['en', 'es', 'it', 'fr]
use Lkt\Translations\Translations;
// Get translations with current language
Translations::get('name');
// Nested translations can be accessed using the dot separator:
Translations::get('billing.address');
// Specify wanted language
Translations::get('name', 'it');
use Lkt\Translations\Translations;
Translations::setLang('es');
use Lkt\Translations\Translations;
$missed = Translations::getMissedTranslations()