PHP code example of fyre / lang

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::addPath($path, $prepend);

Lang::clear();

$lang = Lang::get($key, $data);

$defaultLocale = Lang::getDefaultLocale();

$locale = Lang::getLocale();

$paths = Lang::getPaths();

$removed = Lang::removePath($path);

Lang::setDefaultLocale($locale);

Lang::setLocale($locale);