PHP code example of yohns / lang

1. Go to this page and download the library: Download yohns/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/ */

    

yohns / lang example snippets


use Yohns\Lang\Text;

 'es');

echo Text::L('Hello'); // Hola
echo Text::L('Hello [name]', ['[name]' => 'Yohn']); // Hola Yohn


public static L (string $phrase, array $ary)

public __construct (string $dir, string $lingo)

public static getAll (void)

public static reload (void)

public static set (string $key, mixed $value)