PHP code example of bojian / tolgee-lang

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

    

bojian / tolgee-lang example snippets


 /**
 * 获取语言变量值
 * @param string $name
 * @param array $vars  替换使用的变量
 * @param string $lang
 * @return void
 */
$string = tolgeeLang('err_code_23268', [], 'en-us');