1. Go to this page and download the library: Download melakudemeke/kenat-php 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/ */
melakudemeke / kenat-php example snippets
use Kenat\Kenat;
$today = new Kenat();
echo $today->format(); // e.g. "ጥቅምት 5 2018"
$date = new Kenat('2016/10/5');
echo $date->formatInGeezAmharic(); // "ሰኔ ፭ ፳፻፲፮"
echo $date->getGregorian()->year; // 2024
$nextWeek = $date->addDays(7);
echo $nextWeek->formatShort(); // "2016/10/12"