An open API service indexing awesome lists of open source software.

https://github.com/fagai/zengin-php

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

bank php

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Zengin-php

[![Actions Status](https://github.com/fagai/zengin-php/workflows/main/badge.svg)](https://github.com/fagai/zengin-php/actions)
[![Latest Stable Version](https://poser.pugx.org/fagai/zengin-code/v/stable)](https://packagist.org/packages/fagai/zengin-code)
[![Latest Unstable Version](https://poser.pugx.org/fagai/zengin-code/v/unstable)](https://packagist.org/packages/fagai/zengin-code)
[![License](https://poser.pugx.org/fagai/zengin-code/license)](https://packagist.org/packages/fagai/zengin-code)
[![codecov](https://codecov.io/gh/fagai/zengin-php/branch/master/graph/badge.svg)](https://codecov.io/gh/fagai/zengin-php)

PHP implementation using [zengin-code/source-data](https://github.com/zengin-code/source-data)

[zengin-code/source-data](https://github.com/zengin-code/source-data)をベースにしてPHPライブラリ化しました。

# Requirements

* PHP7.2 or later

# Install

```
composer require fagai/zengin-code
```

# Usage

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

```php
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