PHP code example of kecik / language
1. Go to this page and download the library: Download kecik/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/ */
kecik / language example snippets
= new Kecik\Kecik();
$lang = new Kecik\Language(array(
'id'=>'lang_id.json',
'us'=>'lang_us.json'
));
$app->get('/', function() use ($lang){
echo 'Indonesia Sign In :'.$lang->id('signin').'<br />';
echo 'English [US] Sign In :'.$lang->us('signin').'<br />';
echo 'Indonesia Must be fill : '.$lang->id('must be fill', array('form', 'validation')).'<br />';
echo 'English [US] Must be fill :'.$lang->us('must be fill', array('form', 'validation'));
});
$app->run();