PHPackages                             prevailexcel/laravel-bani - 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. prevailexcel/laravel-bani

ActiveLibrary

prevailexcel/laravel-bani
=========================

A Laravel Package for Bani

1.0.0(2y ago)1422MITPHP

Since Dec 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PrevailExcel/laravel-bani)[ Packagist](https://packagist.org/packages/prevailexcel/laravel-bani)[ RSS](/packages/prevailexcel-laravel-bani/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

laravel-bani
============

[](#laravel-bani)

[![Latest Stable Version](https://camo.githubusercontent.com/0f5c961edf071d3ce691cd555cdb5130f9b61cdb9f6302b2cd034e00075dba8c/68747470733a2f2f706f7365722e707567782e6f72672f7072657661696c657863656c2f6c61726176656c2d62616e692f762f737461626c652e737667)](https://packagist.org/packages/prevailexcel/laravel-bani)[![License](https://camo.githubusercontent.com/64cbb2ccff85cc5e0b26cb711beca1d29c8fddf2acc66a04000abf06a8386f64/68747470733a2f2f706f7365722e707567782e6f72672f7072657661696c657863656c2f6c61726176656c2d62616e692f6c6963656e73652e737667)](LICENSE.md)

> A Laravel Package for working with Bani Payments seamlessly.

This package also allows you to receive webhooks from [Bani](https://bani.africa) which it verifies for you and processes the payloads. It also implements The Bani Pop Payment Widget and handles the callback for laravel. You can start collecting payment in fiat and crypto payments in minutes.

Installation
------------

[](#installation)

[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel Bani, simply require it

```
composer require prevailexcel/laravel-bani
```

Or add the following line to the require block of your `composer.json` file.

```
"prevailexcel/laravel-bani": "1.0.*"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once Laravel Bani is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

> If you use **Laravel &gt;= 5.5** you can skip this step and go to [**`configuration`**](https://github.com/PrevailExcel/laravel-bani#configuration)

```
'providers' => [
    ...
    PrevailExcel\Bani\BaniServiceProvider::class,
    ...
]
```

Also, register the Facade like so:

```
'aliases' => [
    ...
    'Bani' => PrevailExcel\Bani\Facades\Bani::class,
    ...
]
```

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

[](#configuration)

You can publish the configuration file using this command:

```
php artisan vendor:publish --provider="PrevailExcel\Bani\BaniServiceProvider"
```

A configuration-file named `bani.php` with some sensible defaults will be placed in your `config` directory:

```
