PHPackages                             stephenjude/blochq-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. stephenjude/blochq-php-sdk

AbandonedArchivedLibrary[API Development](/categories/api)

stephenjude/blochq-php-sdk
==========================

An SDK to easily work with the BlocHQ API

1.0.7(3y ago)0182MITPHPPHP ^8.0

Since Dec 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/stephenjude/blochq-php-sdk)[ Packagist](https://packagist.org/packages/stephenjude/blochq-php-sdk)[ Docs](https://github.com/stephenjude/bloc-php-sdk)[ RSS](/packages/stephenjude-blochq-php-sdk/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (8)Dependencies (5)Versions (9)Used By (0)

SDK to easily work with the BlocHQ API
======================================

[](#sdk-to-easily-work-with-the-blochq-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f2308076c3d4e2a839ed4f5327ee50a547d5722a23d91fbccbfb621164ad53e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374657068656e6a7564652f626c6f6368712d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stephenjude/blochq-php-sdk)[![Tests](https://github.com/stephenjude/blochq-php-sdk/workflows/run-tests/badge.svg)](https://github.com/stephenjude/blochq-php-sdk/workflows/run-tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/578d59d31c69831e6dbae8373db85794d541cfd6a74011857494b2d3b0e37a2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7374657068656e6a7564652f626c6f6368712d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stephenjude/blochq-php-sdk)

This SDK lets you perform API calls to [BlocHQ APIs](https://docs.blochq.io/reference).

Documentation
-------------

[](#documentation)

### Installation

[](#installation)

To install the SDK in your project you need to require the package via composer:

```
composer require stephenjude/blochq-php-sdk
```

### Basic Usage

[](#basic-usage)

You can create an instance of the SDK like so:

```
$blocHQ = new \Stephenjude\BlocHqPhpSdk\BlocHQ(TOKEN_HERE);
```

#### Manage Account

[](#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

[](#manage-transfers)

```
$blocHQ->transferFromOrgBalance(AMOUNT, ACCOUNT_NUMBER, BANK_CODE, NARRATION, [META_DATA]);
```

#### Manage Transactions

[](#manage-transactions)

```
$blocHQ->getAllTransactions();
$blocHQ->getTransactionById(TRANSACTION_ID);
$blocHQ->getTransactionByReference(TRANSACTION_REFERENCE);
```

#### Manage Banks

[](#manage-banks)

```
$blocHQ->getBankList();
$blocHQ->resolveBankAccount(ACCOUNT_NUMBER, BANK_CODE);
```

### API Reference

[](#api-reference)

All API references can be found on [BlocHQ](https://docs.blochq.io/reference) documentation website.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stephen Jude](https://github.com/stephenjude)
- [All Contributors](../../contributors)

This package uses code from and is greatly inspired by the [Ohdear SDK package](https://github.com/ohdearapp/ohdear-php-sdk) by [Freek](https://github.com/freekmurze)&amp; [Mattias Geniar](https://github.com/mattiasgeniar).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~7 days

Total

8

Last Release

1196d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb8b712638a0d72afbc4e21574989fdfc33717a69ea3070e92104183db8068f9?d=identicon)[stephenjude](/maintainers/stephenjude)

---

Top Contributors

[![stephenjude](https://avatars.githubusercontent.com/u/31182887?v=4)](https://github.com/stephenjude "stephenjude (38 commits)")

---

Tags

apisdkBankblochq

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stephenjude-blochq-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/stephenjude-blochq-php-sdk/health.svg)](https://phpackages.com/packages/stephenjude-blochq-php-sdk)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.5M916](/packages/statamic-cms)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[resend/resend-php

Resend PHP library.

596.2M35](/packages/resend-resend-php)[smodav/mpesa

M-Pesa API implementation

16167.1k1](/packages/smodav-mpesa)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M10](/packages/checkout-checkout-sdk-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

72287.1k1](/packages/mozex-anthropic-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
