PHPackages                             digikraaft/abokifx-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. digikraaft/abokifx-php

ActiveLibrary[API Development](/categories/api)

digikraaft/abokifx-php
======================

PHP Implementation of abokiFX API

v1.0.2(4y ago)2132MITPHPPHP ^7.4|^8.0|^8.1

Since Dec 6Pushed 4y agoCompare

[ Source](https://github.com/digikraaft/abokifx-php)[ Packagist](https://packagist.org/packages/digikraaft/abokifx-php)[ Docs](https://github.com/digikraaft/abokifx-php)[ RSS](/packages/digikraaft-abokifx-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Convenient PHP wrapper to abokiFX API
=====================================

[](#convenient-php-wrapper-to-abokifx-api)

[![run-tests](https://github.com/digikraaft/abokifx-php/workflows/run-tests/badge.svg)](https://github.com/digikraaft/abokifx-php/workflows/run-tests/badge.svg)[![Build Status](https://camo.githubusercontent.com/54002250b4b8f377fc0e819693e34474048d7d53562e4ad20136bea9010c614e/68747470733a2f2f6170692e7472617669732d63692e636f6d2f646967696b72616166742f61626f6b6966782d7068702e7376673f6272616e63683d6d61696e267374617475733d706173736564)](https://app.travis-ci.com/github/digikraaft/abokifx-php)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ea8460e4c7c6da2e5d12c4f33491499d3e0d55cc9ed9873e612f6e914baccb85/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646967696b72616166742f61626f6b6966782d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/digikraaft/abokifx-php)[![Code Intelligence Status](https://camo.githubusercontent.com/edb51819c5d275a31ddbc0eca1ff19672f2f05540f91616364540da4599155c6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646967696b72616166742f61626f6b6966782d7068702f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d61696e)](https://scrutinizer-ci.com/g/digikraaft/abokifx-php)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)

This package provides an expressive and convenient way to interact with the [abokiFX API](https://https://www.abokifx.com/api_references/).

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

[](#installation)

You can install the package via composer:

```
composer require digikraaft/abokifx-php
```

Usage
-----

[](#usage)

All APIs documented in abokiFX's [API Reference](https://https://www.abokifx.com/api_references/) are currently supported by this package.

### Authentication

[](#authentication)

Before using any of the endpoints, you will have to obtain your API token by contacting the abokiFX [marketing team](marketing@abokifx.com) via

### Usage

[](#usage-1)

```
use Digikraaft\Abokifx\Abokifx;
use Digikraaft\Abokifx\Rate;

//set API token
Abokifx::setApiToken('apitokenfromabokifx');

$response = Rate::current();
```

### Available Methods

[](#available-methods)

A list of the available methods are documented below:

#### Abokifx

[](#abokifx)

- `getApiToken() : string`
- `setApiToken(string $apiToken) : void`

#### Rate

[](#rate)

- `current(): Array|Object`
- `otherParallel(): Array|Object`
- `previous(): Array|Object`
- `withDate(array params) : Array|Object`

This package returns the exact response from the abokiFX API but as the `stdClass` type or `array`. The package returns the response as `array` by default. If you want to return the response as `object`, simple set the response type before calling the endpoint like this:

```
use Digikraaft\Abokifx\Abokifx;

Abokifx::setResponseType(Abokifx::OBJECT_RESPONSE);
```

Testing
-------

[](#testing)

```
composer test
```

More Good Stuff
---------------

[](#more-good-stuff)

Check [here](https://github.com/digikraaft) for more awesome free stuff!

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Contributions are welcome! Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Tim Oladoyinbo](https://github.com/timoladoyinbo)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~57 days

Total

3

Last Release

1509d ago

PHP version history (3 changes)v1.0.0PHP ^7.4

v1.0.1PHP ^7.4|^8.0

v1.0.2PHP ^7.4|^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/298ea582e7fdad689b46e4fa771f3eb5caa963a9a7a76b2416dd98bada23d15f?d=identicon)[digikraaft](/maintainers/digikraaft)

---

Top Contributors

[![timoladoyinbo](https://avatars.githubusercontent.com/u/66416657?v=4)](https://github.com/timoladoyinbo "timoladoyinbo (8 commits)")

---

Tags

forexdigikraaftabokifx-phpabokicurrency exchange api

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/digikraaft-abokifx-php/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[oneforge/forexquotes

Library to fetch and parse realtime Forex quotes and convert currencies

7212.5k](/packages/oneforge-forexquotes)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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