1. Go to this page and download the library: Download fyre/lang 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/ */
fyre / lang example snippets
use Fyre\Lang\Lang;
$lang = new Lang($config);
$container->singleton(Lang::class);
$lang = $container->use(Lang::class);
$lang->addPath($path, $prepend);
$lang->clear();
$lang = $lang->get($key, $data);
$defaultLocale = $lang->getDefaultLocale();
$locale = $lang->getLocale();
$paths = $lang->getPaths();
$lang->removePath($path);
$lang->setDefaultLocale($locale);
$lang->setLocale($locale);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.