PHP code example of fagai / zengin-code

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

    

fagai / zengin-code example snippets


Fagai\ZenginCode\ZenginCode::bank('0001');
/*
object(Fagai\ZenginCode\Bank) {
  ["code"]=>
  string(4) "0001"
  ["name"]=>
  string(9) "みずほ"
  ["katakana"]=>
  string(9) "ミズホ"
  ["hiragana"]=>
  string(9) "みずほ"
  ["romaji"]=>
  string(6) "mizuho"
}
 */

Fagai\ZenginCode\ZenginCode::bank('0001')->branch('001');
/*
  object(Fagai\ZenginCode\Branch) {
     ["code"]=>
     string(3) "001"
     ["name"]=>
     string(15) "東京営業部"
     ["katakana"]=>
     string(15) "トウキヨウ"
     ["hiragana"]=>
     string(15) "とうきよう"
     ["romaji"]=>
     string(8) "toukiyou"
   }
 */