项目作者: joglomedia

项目描述 :
Internet Banking client wrapper, useful to check internet banking transaction (cek mutasi online) using PHP script.
高级语言: PHP
项目地址: git://github.com/joglomedia/ibanking.git
创建时间: 2017-07-31T00:33:47Z
项目社区:https://github.com/joglomedia/ibanking

开源协议:GNU General Public License v2.0

下载


IBanking - Internet Banking

Internet Banking client wrapper, useful to check internet banking statements (cek mutasi online) using PHP script.

Documentation

The documentation is currently under construction.

You can read here:

Installation

Composer

Add ibanking library in to your composer.json or create a new composer.json file:

  1. {
  2. "require": {
  3. "joglomedia/ibanking": "dev-master"
  4. }
  5. }

Then, tell composer to download the library by running the command:

  1. $ php composer.phar install

Composer will generate the autoloader file automatically. So you only have to include this.
Typically its located in the vendor directory and its called autoload.php

  1. <?php
  2. include('vendor/autoload.php');

Basic Usage

This library is using the PSR-4 standard: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4.md.
So you can use any autoloader which fits into this standard.
The tests directory contains an example bootstrap file.

  1. <?php
  2. namespace MasEDI\CekMutasiDemo
  3. use IBanking\IBanking as IBanking;
  4. use IBanking\IBParser\SampleBankParser as SBParser;
  5. $credentials = [
  6. 'corpid' => '',
  7. 'username' => 'namauser',
  8. 'password' => 'katasandi',
  9. 'account' => 'nomor_rekening',
  10. ];
  11. $ibanking = new IBanking(new SBParser, $credentials);
  12. $loggedin = $ibanking->login();
  13. var_dump($loggedin);
  14. echo("\r\n");
  15. $balance = $ibanking->getBalance();
  16. var_dump($balance);
  17. echo("\r\n");
  18. $mutasi = $ibanking->getStatements('24/7/2017', '29/7/2017', 'credit');
  19. var_dump($mutasi);
  20. echo("\r\n");
  21. var_dump($ibanking->isLoggedin($session=true));
  22. $ibanking->logout();

For some very simple examples go to the samples directory and have a look at the sample files.

Contribution

Please send your PR on the Github repository to help improve this script.

DONATION

Buy Me a Bottle of Milk

(c) 2017