A library that converts Time to its equivalent local languages of 4 basic Nigerian languages(Yoruba, Hausa, Igbo and English)
To use this library, just require the needed Language class from the src
folder:
//for English
require_once __DIR__.'/src/English.php';
//for Yoruba
require_once __DIR__.'/src/Yoruba.php';
//for Hausa
require_once __DIR__.'/src/Hausa.php';
//for Igbo
require_once __DIR__.'/src/Igbo.php';
// Import Yoruba Time Class
use LanguageTime\English;
//Import Hausa Time Class
use LanguageTime\Hausa;
//Import Igbo Time Class
use LanguageTime\Igbo;
//Import English Time Class
use LanguageTime\Yoruba;
echo new Yoruba();
// Aago Márùn-ún Ku ìsẹ́jú Méjì
echo new Hausa();
// Karfe Biyar Sauran Minti Biyu
echo new Igbo();
// Elekere Ise O foro nkeji
echo new English();
// Two minutes to Five
$yoruba = new Yoruba();
echo $yoruba->getTime(time());
echo $igbo->getTime(time());
echo $hausa->getTime(time());
echo $english->getTime(time());
$yoruba = new Yoruba();
echo $yoruba->getTime("now");
echo $yoruba->getTime("today");
echo $yoruba->getTime("yesterday");
echo $yoruba->getTime("+ 7 days");
echo $yoruba->getTime("2017-10-09 12:50:00");
// Aago Kan Ku ìsẹ́jú Mẹ́wàá
$igbo = new Yoruba();
echo $igbo->getTime("now");
echo $igbo->getTime("today");
echo $igbo->getTime("yesterday");
echo $igbo->getTime("+ 7 days");
echo $igbo->getTime("2017-10-09 12:50:00");
// Elekere Otu O foro nkeji Iri
$hausa = new Yoruba();
echo $hausa->getTime("now");
echo $hausa->getTime("today");
echo $hausa->getTime("yesterday");
echo $hausa->getTime("+ 7 days");
echo $hausa->getTime("2017-10-09 12:50:00");
// Karfe Daya Sauran Minti Goma
$english = new Yoruba();
echo $english->getTime("now");
echo $english->getTime("today");
echo $english->getTime("yesterday");
echo $english->getTime("+ 7 days");
echo $english->getTime("2017-10-09 12:50:00");
// Ten minutes to One
$yoruba = new Yoruba();
$igbo = new Yoruba();
$hausa = new Yoruba();
$english = new Yoruba();
//12 hrs, 34 minutes
echo $yoruba->getTimeHour(12,34);
echo $igbo->getTimeHour(12,34);
echo $hausa->getTimeHour(12,34);
echo $english->getTimeHour(12,34);