The Flutterwave PHP library provides convenient access to the Flutterwave API from applications written in the PHP language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the Flutterwave API.
PHP 8.0 and later.
You can install the bindings via Composer. Run the following command:
composer require starfolksoftware/flutterwave-php
To use the bindings, use Composer's autoload:
require_once('vendor/autoload.php');
Any package that implements psr/http-client-implementation
Simple usage looks like:
<?php
require_once "vendor/autoload.php";
use StarfolkSoftware\Flutterwave\Client as FlutterwaveClient;
$flutterwave = new FlutterwaveClient([
'secretKey' => 'FLWSECK_TEST-*******',
]);
$response = $flutterwave
->transactions
->all([]);
var_dump($response['data'][0]);
\\ dumps
array(21) { ... }
...
See the PHP API docs.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.