airondev / flutterwave-laravel-v3
A Flutterwave's Version 3 Implementation For Laravel
Requires
- php: ^8.1|^8.2
- illuminate/support: ^9.0|^10.1
- mashape/unirest-php: ^3.0|^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.17
- mockery/mockery: ^1.2
- orchestra/testbench: ^8.5
- php-coveralls/php-coveralls: ^0.1.0
- phpunit/phpunit: ^9.6|^10.1
- satooshi/php-coveralls: ^0.1.0
- scrutinizer/ocular: ^1.1
This package is auto-updated.
Last update: 2025-03-29 01:06:56 UTC
README
Laravel Package for Flutterwave v3 APIs
Installation
To get the latest version of Flutterwave Rave for Laravel, simply use composer:
composer require airondev/flutterwave-laravel-v3
For Laravel => 5.5
, skip this step and go to configuration
Once Flutterwave Rave for Laravel is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key.
'providers' => [ /* * Package Service Providers... */ ... Laravel\Flutterwave\RaveServiceProvider::class, ... ]
Also add this to the aliases
'aliases' => [ ... 'Rave' => Laravel\Flutterwave\Facades\Rave::class, ... ]
Configuration
php artisan vendor:publish --provider="Laravel\Flutterwave\RaveServiceProvider"
A configuration-file named flutterwave.php
will be placed in your config directory
Usage
Open your .env file and add your public key, secret key, environment variable and logo url like so:
FLUTTERWAVE_PUBLIC_KEY=FLWPUBK-xxxxxxxxxxxxxxxxxxxxx-X
FLUTTERWAVE_SECRET_KEY=FLWSECK-xxxxxxxxxxxxxxxxxxxxx-X
FLUTTERWAVE_ENCRYPTION_KEY=FLWSECK_TESTxxxxxxxxxxxx
FLUTTERWAVE_ENV=staging
-
FLUTTERWAVE_PUBLIC_KEY - This is the api public key gotten from your dashboard (compulsory)
-
FLUTTERWAVE_SECRET_KEY - This is the api secret key gotten from your dashboard (compulsory)
-
FLUTTERWAVE_ENCRYPTION_KEY - This is the encryption key gotten from your dashboard (compulsory)
-
FLUTTERWAVE_ENV - This can be
staging
orlive
. Staging and live API keys can be from your dashboard (compulsory)