stephenjude/blochq-php-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

Latest Version on Packagist Tests Total Downloads

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
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-09