1. Go to this page and download the library: Download frmb/language 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/ */
frmb / language example snippets
$di->setShared('language', function() use ($di){
$language = new \Anax\Language\Language();
$language->setDI($di);
return $language;
});
$app->language->words('welcome_message');
class CommentController
{
public function viewAction(){
echo $this->language->words('commentcontroller_hello');
}
}