Download the PHP package flutterwavedev/flutterwave-v3 without Composer

On this page you can find all versions of the php package flutterwavedev/flutterwave-v3. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package flutterwave-v3

Flutterwave v3 PHP SDK.

Packagist Downloads Packagist PHP Version Support GitHub stars Packagist License

This Flutterwave v3 PHP Library provides easy access to Flutterwave for Business (F4B) v3 APIs from php apps. It abstracts the complexity involved in direct integration and allows you to make quick calls to the APIs.

Available features include:

Table of Contents

  1. Requirements
  2. Installation
  3. Initialization
  4. Usage
  5. Testing
  6. Debugging Errors
  7. Support
  8. Contribution guidelines
  9. License
  10. Changelog

Requirements

  1. Flutterwave for business API Keys
  2. Acceptable PHP versions: >= 7.4.0. for older versions of PHP use the Legacy Branch

Installation

Installation via Composer.

To install the package via Composer, run the following command.

Initialization

Create a .env file and follow the format of the .env.example file Save your PUBLIC_KEY, SECRET_KEY, ENV in the .env file

Your .env file should look this.

Render Payment Modal

The SDK provides two easy methods of making collections via the famous payment modal. Learn more

  1. Flutterwave Inline
  2. Flutterwave Standard

Get Started

Edit the paymentForm.php and processPayment.php files to suit your purpose. Both files are well documented.

Simply redirect to the paymentForm.php file on your browser to process a payment.

In this implementation, we are expecting a form encoded POST request to this script. The request will contain the following parameters.

The script in paymentProcess.php handles the request data via the PaymentController. If you are using a Framework like Laravel or CodeIgniter you might want to take a look at the PaymentController


Configuration settings

Create a .env file and add the bootstrap method first before initiating a charge.

if you do not wish to use a .env, you can simply pass your API keys like the example below.

`

Usage

Charge

  1. Account Charge
  2. ACH Charge
  3. Card Charge
  4. Mobile Money
  5. FawryPay
  6. GooglePay
  7. ApplePay
  8. Mpesa
  9. BankTransfer
  10. USSD
  11. eNaira

Resources

  1. Banks
  2. Beneficiaries
  3. Payment Plans
  4. Collection Subaccounts
  5. Payout Subaccounts
  6. Subscriptions
  7. Transfers
  8. Transactions
  9. Virtual Cards
  10. Virtual Account
  11. Misc

Testing

All of the SDK's tests are written with PHP's module. The tests currently test: , , , , , , and

They can be run like so:

NOTE: If the test fails for creating a subaccount, just change the and to something different

NOTE: The test may fail for account validation - depending on whether the service is down or not

Debugging Errors

We understand that you may run into some errors while integrating our library. You can read more about our error messages here.

For authorization and validation error responses, double-check your API keys and request. If you get a server error, kindly engage the team for support.

Support

For additional assistance using this library, contact the developer experience (DX) team via slack.

You can also follow us @FlutterwaveEng and let us know what you think 😊.

Contribution guidelines

Read more about our community contribution guidelines here

License

By contributing to this library, you agree that your contributions will be licensed under its MIT license.

Copyright (c) Flutterwave Inc.

Flutterwave API References


All versions of flutterwave-v3 with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0 || ^8.1
monolog/monolog Version ^2.0 || ^3.0
vlucas/phpdotenv Version ^2.5 || ^3.0 || ^5.0
ext-json Version *
ext-curl Version *
ext-openssl Version *
guzzlehttp/guzzle Version ^7.5
psr/http-client Version ^1.0
php-http/guzzle7-adapter Version ^1.0
composer/ca-bundle Version ^1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package flutterwavedev/flutterwave-v3 contains the following files

Loading the files please wait ....