PHP code example of kiddokenshin / japan-post-bank-converter
1. Go to this page and download the library: Download kiddokenshin/japan-post-bank-converter 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/ */
kiddokenshin / japan-post-bank-converter example snippets
KiddoKenshin\JapanPostBankConverter\JapanPostBankConverter;
KiddoKenshin\JapanPostBankConverter\JapanPostBankConverter;
// Sample: http://www.jp-bank.japanpost.jp/kojin/sokin/koza/kj_sk_kz_furikomi_ksk.html
$bankFormat = JapanPostBankConverter::convertKigouBangouToStandardBankFormat('11930', '12345671');
$kigouBangou = JapanPostBankConverter::convertBankFormatToKigouBangou('一九八', '1234567');
// or
$kigouBangou = JapanPostBankConverter::convertBankFormatToKigouBangou('198', '1234567');