PHPackages                             horlarmeday/okra-php - 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. horlarmeday/okra-php

ActiveLibrary[API Development](/categories/api)

horlarmeday/okra-php
====================

Okra core products implementation

00PHP

Since Dec 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Horlarmeday/okra-php)[ Packagist](https://packagist.org/packages/horlarmeday/okra-php)[ RSS](/packages/horlarmeday-okra-php/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Okra-php
========

[](#okra-php)

okra-php is a PHP library for okra core products.

Installation
------------

[](#installation)

Use the package manager [composer](https://getcomposer.org/download/) to install okra-php.

```
composer require horlarmeday/okra-php
```

Usage
-----

[](#usage)

okra-php provides the simple access to use [okra](https://okra.ng) core products which includes: Auth, Balance, Identity, Income and Transactions. To start you need to instantiate the Okra class, and pass your access token. All methods return array as response.

```
$okra = new Okra(ACCESS_TOKEN);
```

#### 1. Auth

[](#1-auth)

Okra offers a path for a customer to successfully verify their bank. The customer enters their credentials via the widget and are authenticated immediately.

##### i. Get all auth

[](#i-get-all-auth)

This retrieves all auth information including bank account and routing numbers associated with a Record's current, savings, and domiciliary accounts.

*Optionally pass a boolean `true` to get a .pdf format*

```
$okra->getAllAuth();
```

##### ii. Get auth by id

[](#ii-get-auth-by-id)

This retrieves auth information by id.

```
$okra->getAuthById();
```

##### iii. Get auth by customer

[](#iii-get-auth-by-customer)

This retrieves the auth information by the customer id.

```
$okra->getAuthByCustomer();
```

##### iv. Get auth by date range

[](#iv-get-auth-by-date-range)

This retrieves the auth information by passing a date range. This method expects four (4) parameters. `startDate`, `endDate`, `page` and `limit`. However the first two are required while last two are optional. `page` is stating the page number you wish to return while `limit` is the number of records to return.

```
$okra->getAuthByDateRange('2020-05-13', '2020-05-20', 1, 20);
```

##### v. Get auth by bank id

[](#v-get-auth-by-bank-id)

This retrieves the auth information by bank id. This method expects three (3) parameters. `bank_id`, `page` and `limit`. However `page` and `limit` are optional.

```
$okra->getAuthByBank();
```

##### vi. Get auth by customer id and date

[](#vi-get-auth-by-customer-id-and-date)

This retrieves the auth information by customer id and date range. `customer_id`, `startDate` and `endDate` are required.

```
$okra->getAuthByCustomerDate();
```

Contact
-------

[](#contact)

Mahmud Ajao - [@MahmudAjao1](https://twitter.com/@MahmudAjao1) -

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://github.com/Horlarmeday/okra-php/blob/main/LICENSE)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/06fe9ed607aacab3fe86a1f6f05662c9aca593e86deca145dfda6f1682f6f4b7?d=identicon)[Horlarmeday](/maintainers/Horlarmeday)

---

Top Contributors

[![Horlarmeday](https://avatars.githubusercontent.com/u/39765147?v=4)](https://github.com/Horlarmeday "Horlarmeday (7 commits)")

### Embed Badge

![Health badge](/badges/horlarmeday-okra-php/health.svg)

```
[![Health](https://phpackages.com/badges/horlarmeday-okra-php/health.svg)](https://phpackages.com/packages/horlarmeday-okra-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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