starfolksoftware / flutterwave-php
A PHP library to conveniently access the Flutterwave API from applications written in the PHP language.
Installs: 1 051
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- laminas/laminas-diactoros: ^2.8
- php-http/client-common: ^2.3
- php-http/discovery: ^1.14.1
- psr/http-client: ^1.0.1
- psr/http-client-implementation: ^1.0
- psr/http-factory: ^1.0.1
- symfony/options-resolver: ^5.2
Requires (Dev)
- php-http/curl-client: ^2.1
- php-http/mock-client: ^1.5
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.1
README
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.
Requirements
PHP 8.0 and later.
Composer
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');
Dependencies
Any package that implements psr/http-client-implementation
Getting Started
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) { ... } ...
Documentation
See the PHP API docs.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Road Map
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.