PHPackages                             techlup/flutterwave - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. techlup/flutterwave

ActiveLibrary[Payment Processing](/categories/payments)

techlup/flutterwave
===================

php checkout library

1.0(2y ago)05PHP

Since Mar 7Pushed 2y agoCompare

[ Source](https://github.com/Techlup-Solutions/flutterwave)[ Packagist](https://packagist.org/packages/techlup/flutterwave)[ RSS](/packages/techlup-flutterwave/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

FlutterWave Integration Documentation
=====================================

[](#flutterwave-integration-documentation)

This PHP script provides a demonstration of integrating with the FlutterWave API for handling subscription, deactivating subscriptions, and payments.

Support This Project
--------------------

[](#support-this-project)

[ ![Donate with PayPal](https://raw.githubusercontent.com/stefan-niedermann/paypal-donate-button/master/paypal-donate-button.png)](https://www.paypal.com/donate/?hosted_button_id=N9NJKXB445ZZ6)Installation
------------

[](#installation)

1. Clone this repository to your local machine.
2. Navigate to the directory containing the cloned repository.
3. Run `composer install` to install the required dependencies.

or install using composer `composer require techlup/flutterwave`

Configuration
-------------

[](#configuration)

- Ensure you have a FlutterWave account and obtain the required API keys.
- Set your FlutterWave secret key in the `$secrete_key` variable inside the script.

Functions
---------

[](#functions)

### Create a Customer

[](#create-a-customer)

- Description: Creates a new customer in the FlutterWave system.
- Parameters:
    - `$email`: Email address of the customer.
    - `$firstName`: First name of the customer.
    - `$lastName`: Last name of the customer.
- Returns: JSON response containing the details of the created customer.

#### Sample Code

[](#sample-code)

```
// Define customer details
$email = 'user@example.com';
$firstName = 'John';
$lastName = 'Doe';

// Create a new customer
$customer = new \Techlup\FlutterWave\Customer();
$customer->email = $email;
$customer->first_name = $firstName;
$customer->last_name= $lastName;
```

### Subscribe A User

[](#subscribe-a-user)

- Description: Initiates a subscription checkout process for a customer.
- Parameters: None
- Returns: JSON response containing the checkout details.

#### Sample Code

[](#sample-code-1)

```
$subscription = new \Techlup\FlutterWave\Subscription($secrete_key);
$response = $subscription->setRedirectUrl($redirect_url)
    ->setCustomer($customer)
    ->setPlanId('117407')
    ->setRef('test')
    ->setAmount(10)
    ->setCurrency('KES')
    ->checkout();

print_r($response);
```

### Deactivate Subscription

[](#deactivate-subscription)

- Description: Deactivates a subscription.
- Parameters: None
- Returns: JSON response confirming the deactivation of the subscription.

#### Sample Code

[](#sample-code-2)

```
$subscription = new \Techlup\FlutterWave\Subscription($secrete_key);
$response = $subscription->deactivate('127064');

print_r($response);
```

### Process Payment

[](#process-payment)

- Description: Initiates a payment checkout process.
- Parameters: None
- Returns: JSON response containing the checkout details.

#### Sample Code

[](#sample-code-3)

```
$payment = new \Techlup\FlutterWave\Payment($secrete_key);
$response = $payment->setAmount(10)
    ->setRef('test')
    ->setCurrency('KES')
    ->setOptions('card')
    ->setRedirectUrl($redirect_url)
    ->setCustomer($customer)
    ->checkout();

print_r($response);
```

Usage
-----

[](#usage)

1. Set up the required configuration as mentioned above.
2. Call the desired function(s) based on your integration needs.
3. Handle the responses accordingly in your application.

Note
----

[](#note)

- This code is provided for testing purposes and should be thoroughly reviewed, modified, and secured before use in a production environment.
- Ensure that your FlutterWave account is properly configured with the necessary plans and payment options.
- Handle the responses appropriately in your application to provide feedback to users.
- Make sure to sanitize and validate user inputs before passing them to these functions to prevent security vulnerabilities.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

849d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/539b4d6340c65da890ad81ee2e6d9853a04ca32fc7a51bad9de5b276a57b8c9d?d=identicon)[techlup](/maintainers/techlup)

---

Top Contributors

[![denisdevke](https://avatars.githubusercontent.com/u/98883557?v=4)](https://github.com/denisdevke "denisdevke (12 commits)")

### Embed Badge

![Health badge](/badges/techlup-flutterwave/health.svg)

```
[![Health](https://phpackages.com/badges/techlup-flutterwave/health.svg)](https://phpackages.com/packages/techlup-flutterwave)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)[patryqhyper/polish_payments_api

Library for polish payment providers

141.6k](/packages/patryqhyper-polish-payments-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
