Download the PHP package wsmwason/taiwan-bank-code without Composer

On this page you can find all versions of the php package wsmwason/taiwan-bank-code. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package taiwan-bank-code

taiwan-bank-code 台灣銀行代碼清單

主要用途

提供台灣的銀行代碼清單 JSON 格式,資料來源為 財金資訊股份有限公司開放資料 XML 檔案, 透過 PHP 將 XML 轉換為 JSON 格式方便運用。

關於此程式

雖然 財金資訊股份有限公司開放資料 有提供完整的 XML 或 CSV 格式的清單, 但其實內容包含了各種不同類型的銀行代碼清單:

一般情況下我們只會需要 網路ATM通匯業務-入戶電匯跨行自動化服務機器業務(金融卡) 的類型即可, 因此此程式下載 XML 後只會將這幾個類型的清單處理為 JSON 格式的檔案。

安裝

透過 Composer 安裝

composer require wsmwason/taiwan-bank-code

簡易使用方式

取得 網路ATM 銀行代碼清單

取得 通匯業務-入戶電匯 銀行代碼清單

取得 跨行自動化服務機器業務(金融卡) 銀行代碼清單

只要 data/ 目錄內含有 JSON 檔案, 就能透過 listBankCodeATM()listBankCodeTT() 取得銀行代碼清單。

可取得 ATM 的 Array:

Array
(
    [0] => Array
        (
            [code] => 004
            [name] => 臺灣銀行
        )

    [1] => Array
        (
            [code] => 005
            [name] => 臺灣土地銀行
        )
    ...
)

或是自己把 data/ 目錄的 JSON 直接讀取來用。

更新來源

本來是不想把 XML 放在專案內, 不過台灣的銀行代碼異動應該不算是太頻繁, 如果有更新時之後會再發布新版來更新 JSON 內容。

不過如果真的想直接更新的話,還是可以用 TaiwanBankCodeDataUpdate 來下載 XML 以及轉換 JSON 格式檔案, 如果真的有更新可以順手發個 PR 發布新版。

執行下載 XML 及轉換 JSON

版本紀錄

1.0.0 正式釋出

License

The MIT License (MIT)


All versions of taiwan-bank-code with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wsmwason/taiwan-bank-code contains the following files

Loading the files please wait ....