PHP code example of yamaaaaaa / wareki

1. Go to this page and download the library: Download yamaaaaaa/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/ */

    

yamaaaaaa / wareki example snippets


$wareki = new Wareki();
$formated = $wareki->format('ERA');
var_dump($formated);
>>string(10) "令和6年"