PHPackages                             delakanda/mazzuma - 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. [API Development](/categories/api)
4. /
5. delakanda/mazzuma

ActiveLibrary[API Development](/categories/api)

delakanda/mazzuma
=================

Laravel wrapper around the Mazzuma API

08PHPCI failing

Since Jun 16Pushed 6y ago2 watchersCompare

[ Source](https://github.com/delakanda/mazzuma)[ Packagist](https://packagist.org/packages/delakanda/mazzuma)[ RSS](/packages/delakanda-mazzuma/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Mazzuma Laravel Package
=======================

[](#mazzuma-laravel-package)

A Laravel-first integration for the Mazzuma API. It can also be used with other PHP libraries as well as Vanilla PHP.

It provides an easy to use interface for all you Mazzuma API needs.

How to install
--------------

[](#how-to-install)

Installation is as simple as running:

```
$ composer require delakanda/mazzuma

```

For Laravel users
-----------------

[](#for-laravel-users)

### Service Provider Setup

[](#service-provider-setup)

**NB: If you are using Laravel with a version greater than '5.5' you can skip this**

Add the following to your '**config/app.php**' file in the '**providers**' array section

```
Delakanda\Mazzuma\MazzumaServiceProvider::class,

```

### Setup the Facade

[](#setup-the-facade)

**NB: If you are using Laravel with a version greater than '5.5' you can skip this**

Add the Mazzuma facade to your '**config/app.php**' file in the '**aliases**' array section

```
'Mazzuma' => Delakanda\Mazzuma\Facades\Mazzuma::class,

```

### Add environment variables to your .env

[](#add-environment-variables-to-your-env)

Add the following to your .env file

```
MAZZUMA_API_KEY=xxxxxxxxxxxxx

```

Usage
-----

[](#usage)

### Mazzuma Mobile Money

[](#mazzuma-mobile-money)

To perform a mobile money transaction, simple '**make**' a Mazzuma instance and call the "**mobileMoney()**" function on the instance. This will return a Mobile Money instance with which you can set the appropriate properties before making a transaction call.

Usage is as follows:

**For Laravel Users:**

```
