Skip to content

金融機関(銀行)コードの取得ライブラリ [zengin-code/source-data]を利用

License

Notifications You must be signed in to change notification settings

fagai/zengin-php

Repository files navigation

Zengin-php

Actions Status Latest Stable Version Latest Unstable Version License codecov

PHP implementation using zengin-code/source-data

zengin-code/source-dataをベースにしてPHPライブラリ化しました。

Requirements

  • PHP7.2 or later

Install

composer require fagai/zengin-code

Usage

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"
   }
 */

License

MIT