PHP code example of starfolksoftware / flutterwave-php

1. Go to this page and download the library: Download starfolksoftware/flutterwave-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

starfolksoftware / flutterwave-php example snippets






tarfolkSoftware\Flutterwave\Client as FlutterwaveClient;

$flutterwave = new FlutterwaveClient([
    'secretKey' => 'FLWSECK_TEST-*******',
]);

$response = $flutterwave
    ->transactions
    ->all([]);

var_dump($response['data'][0]);

\\ dumps
array(21) { ... }
...
bash
composer