1. Go to this page and download the library: Download yutaki323/wareki 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/ */
yutaki323 / wareki example snippets
use Wareki\Wareki;
$wareki = new Wareki;
echo $wareki->format();
$wareki = new Wareki('2019-04-30');
echo $wareki->format('{gengou}{nendo}年');
$wareki = new Wareki('2019-04-30');
echo $wareki->format('{gengou.short}.{nendo}');
$wareki = new Wareki('2019-04-30');
echo $wareki->format('{gengou}{nendo.kanji}年');
$wareki = new Wareki('2019-05-01');
echo $wareki->format('{gengou}{nendo.kanji}年');
$wareki = new Wareki('2019-05-01');
echo $wareki->format('{gengou}の{nendo.kansuji}年');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.