This package provides an expressive and convenient way to interact with the abokiFX API.
You can install the package via composer:
composer require digikraaft/abokifx-php
All APIs documented in abokiFX's API Reference are currently supported by this package.
Before using any of the endpoints, you will have to obtain your API token by contacting the abokiFX marketing team via marketing@abokifx.com
use Digikraaft\Abokifx\Abokifx;
use Digikraaft\Abokifx\Rate;
//set API token
Abokifx::setApiToken('apitokenfromabokifx');
$response = Rate::current();
A list of the available methods are documented below:
getApiToken() : string
setApiToken(string $apiToken) : void
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);
composer test
Check here for more awesome free stuff!
Please see CHANGELOG for more information on what has changed recently.
Contributions are welcome! Please see CONTRIBUTING for details.
If you discover any security related issues, please email hello@digikraaft.ng instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.