stephenjude/blochq-php-sdk
最新稳定版本:1.0.7
Composer 安装命令:
composer require stephenjude/blochq-php-sdk
包简介
An SDK to easily work with the BlocHQ API
README 文档
README
This SDK lets you perform API calls to BlocHQ APIs.
Documentation
Installation
To install the SDK in your project you need to require the package via composer:
composer require stephenjude/blochq-php-sdk
Basic Usage
You can create an instance of the SDK like so:
$blocHQ = new \Stephenjude\BlocHqPhpSdk\BlocHQ(TOKEN_HERE);
Manage Account
$blocHQ->createCollectionAccount();
$account = $blocHQ->getAccountByAccountNumber(ACCOUNT_NUMBER); $account = $blocHQ->getAccountById(ID); $account->freeze(); $account->unfreeze(); $account->close(); $account->reopen(); $account->credit(AMOUNT); // Simulation endpoint $account->debit(AMOUNT); // Simulation endpoint
Manage Transfers
$blocHQ->transferFromOrgBalance(AMOUNT, ACCOUNT_NUMBER, BANK_CODE, NARRATION, [META_DATA]);
Manage Transactions
$blocHQ->getAllTransactions(); $blocHQ->getTransactionById(TRANSACTION_ID); $blocHQ->getTransactionByReference(TRANSACTION_REFERENCE);
Manage Banks
$blocHQ->getBankList(); $blocHQ->resolveBankAccount(ACCOUNT_NUMBER, BANK_CODE);
API Reference
All API references can be found on BlocHQ documentation website.
Security
If you discover any security related issues, please email jude@pay4me.app instead of using the issue tracker.
Credits
This package uses code from and is greatly inspired by the Ohdear SDK package by Freek & Mattias Geniar.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 182
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-09