承接 arifr007/ibanking 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arifr007/ibanking

Composer 安装命令:

composer create-project arifr007/ibanking

包简介

An automatic way to check the balance and received payment in your bank account.

README 文档

README

Laravel 5.6 Build Status Source License

This package allows you to crawl and parse your bank balance and statement. Currently available for Bank BCA and Bank Mandiri.

Quick Installation

To get started with IBanking, run this command or add the package to your composer.json

composer require "arifr007/ibanking:dev-master"

Configuration

After installing the IBanking package, simply add this classes to the providers array in your project's config/app.php file:

Arifr007\IBanking\IBankingServiceProvider::class

Also, add the IBanking facade to the aliases array in your app configuration file:

'IBanking' => Arifr007\IBanking\Facades\IBanking::class,

Finally add these lines to your config/services.php file:

'bca' => [
    'username' => 'your-klikbca-username',
    'password' => 'your-klikbca-password'
],
'mandiri' => [
    'username' => 'your-mandiri-username',
    'password' => 'your-mandiri-password'
]

How To Use

After all sets, use the IBanking as follows:

$ibank = IBanking::bank('bca'); // or use IBanking::bank('mandiri') for mandiri user

$ibank->login();

$balance = $ibank->getBalance();

$statement = $ibank->getStatement(3); // mutation within last 3 days. Default: 1 (yesterday)

$ibank->logout();

The logout() method should be called to avoid single session at a time restriction from the internet banking provider. This means if you don't call the logout() method at the end of your codes, you won't be able to login to your internet banking from anywhere until its session expired.

Non-Laravel Usage

You can stil use IBanking without Laravel. This is how:

After running composer require arifr007/ibanking, create a php file in your project folder and put the following codes

require 'vendor/autoload.php';

use Arifr007\IBanking\CrawlerParser;
use Arifr007\IBanking\Providers\BCAProvider;

$ibank = new BCAProvider(new CrawlerParser(), 'username', 'password');
$ibank->login();
$balance = $ibank->getBalance();
$statement = $ibank->getStatement();
$ibank->logout();

// the rest of your code...

Tips & Advice

You can place the above code under the Scheduled Command job (Laravel) and sets it to run not more than 100x per day. The less you run it per day, the less chances you are being suspended by the internet banking provider. Please make any necessary effort to keep your ibank username and password safe and secure. Changing your password regularly can help to keep it more secure.

Issues

For bug reporting or code discussions. More info on how to work with GitHub on help.github.com.

Contributing

Contributions are welcome and will be fully credited.

Credits

this project's base from Rick20 iBanking and modified for compatibility to latest laravel 5.6.

License

The module is licensed under MIT. In short, this license allows you to do everything as long as the copyright statement stays present.

统计信息

  • 总下载量: 67
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固