PHPackages                             tchdev/monetbil - 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. tchdev/monetbil

ActiveLibrary[Payment Processing](/categories/payments)

tchdev/monetbil
===============

This will display the payment interface of monetbil (MTN/ORANGE/EU MONEY)

v1.0.3(6y ago)1321↓100%MITCSS

Since Nov 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/LimitlessJR/monetbil-package)[ Packagist](https://packagist.org/packages/tchdev/monetbil)[ RSS](/packages/tchdev-monetbil/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Monetbil PHP Library
====================

[](#monetbil-php-library)

This repository contains the open source PHP SDK that allows you to access the Monetbil Platform from your laravel app.

### Requirements

[](#requirements)

PHP 5.2 and later.

### Download the SDK

[](#download-the-sdk)

### Installation

[](#installation)

#### Composer Installation

[](#composer-installation)

The best way to install monetbil is quickly and easily with [composer](https://getcomposer.org/).

To install the most recent version, run the following command.

```
composer require tchdev/monetbil
```

### Laravel

[](#laravel)

If you don't use auto-discovery, open up your app config and add the Service Provider to the `$providers` array:

```
'providers' => [
   ...
   Propaganistas\LaravelPhone\PhoneServiceProvider::class,
],
```

and aliases to the `$aliases` array:

```
'aliases' => [
   ...
   'Monetbil' => Tchdev\Monetbil\Facades\Monetbil::class,
],
```

Publish file with the command :

```
php artisan vendor:publish

 Which provider or tag's files would you like to publish?:
  [0 ] Publish files from all providers and tags listed below
  [1 ] Provider: Facade\Ignition\IgnitionServiceProvider
  [2 ] Provider: Fideloper\Proxy\TrustedProxyServiceProvider
  [3 ] Provider: Illuminate\Foundation\Providers\FoundationServiceProvider
  [4 ] Provider: Illuminate\Mail\MailServiceProvider
  [5 ] Provider: Illuminate\Notifications\NotificationServiceProvider
  [6 ] Provider: Illuminate\Pagination\PaginationServiceProvider
  [7 ] Provider: Laravel\Tinker\TinkerServiceProvider
  [8 ] Provider: Tchdev\Monetbil\MonetbilServiceProvider
  [9 ] Tag: flare-config
  [10] Tag: ignition-config
  [11] Tag: laravel-errors
  [12] Tag: laravel-mail
  [13] Tag: laravel-notifications
  [14] Tag: laravel-pagination
  [15] Tag: public
 > Enter the number of the package (Tchdev\Monetbil\MonetbilServiceProvider) and press "enter"
```

Now go to your `.env` file and add this :

```
MONETBIL_KEY=YOUR_MONETBIL_KEY
MONETBIL_SECRET=YOUR_MONEBIL_SECRET_KEY
MONETBIL_VERSION=YOUR_MONETBIL_VERSION
```

### Payment Widget Usage

[](#payment-widget-usage)

#### Example 1

[](#example-1)

```
