PHPackages                             ovac/hubtel-payment - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. ovac/hubtel-payment

ActiveLibrary[Testing &amp; Quality](/categories/testing)

ovac/hubtel-payment
===================

A comprehensive PHP Package for consuming the Hubtel Payment API

v2.0.4(7y ago)1412.1k9MITPHPPHP &gt;=5.4.0

Since Aug 15Pushed 7y ago4 watchersCompare

[ Source](https://github.com/ovac/hubtel-payment)[ Packagist](https://packagist.org/packages/ovac/hubtel-payment)[ RSS](/packages/ovac-hubtel-payment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (8)Versions (13)Used By (0)

[![](https://camo.githubusercontent.com/be48656231d926f1ee65a432a20b4c435cd47e438719a2f2fd0b248b28c6dd70/687474703a2f2f7265732e636c6f7564696e6172792e636f6d2f6f7661632f696d6167652f75706c6f61642f685f3230302f76313530363832343534342f34615f557737725f6c6a796271332e6a7067)](https://developers.hubtel.com/documentations/merchant-account-api)[![](https://camo.githubusercontent.com/dc9ce532f28bb3b544b4cee236d6042c9ce5d056d69efcc1f493c0f3baa72870/687474703a2f2f7265732e636c6f7564696e6172792e636f6d2f6f7661632f696d6167652f75706c6f61642f685f3132302f76313530363832383738362f6c6f676f2d636f6d706f7365722d7472616e73706172656e745f7a6a67616c302e706e67)](#)[![](https://camo.githubusercontent.com/255f80294676286314a4cc8ad3c80ab038e85d276d0912f2e5967111737bdf15/687474703a2f2f7265732e636c6f7564696e6172792e636f6d2f6f7661632f696d6167652f75706c6f61642f685f3230302f76313530363832383036332f6272616e645f70626d736a6b2e676966)](#)
[![](https://camo.githubusercontent.com/54230c3971789ff7b772e31e1d73eb21629038247020c6f7afe968485c607c56/687474703a2f2f7265732e636c6f7564696e6172792e636f6d2f6f7661632f696d6167652f75706c6f61642f76313530363832383338302f6c6f676f5f73697a655f696e766572745f6a656c6837342e6a7067)](http://www.ovac4u.com/hubtel-payment)

---

OVAC Hubtel Payment
===================

[](#ovac-hubtel-payment)

The best and most comphrensive PHP Client for consuming the Hubtel Payment API and for sending and receiving Mobile Money Payment from a php application with an elegant **Write as it sounds** syntax.

[![Build Status](https://camo.githubusercontent.com/efd01a95393b7a20b9f6280ada17bd84a38b218a24e2049b82aff38396c04c7a/68747470733a2f2f7472617669732d63692e6f72672f6f7661632f68756274656c2d7061796d656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ovac/hubtel-payment)[![Coverage Status](https://camo.githubusercontent.com/c9409d28ec4272ae8481cd5f3550acd198a36f61b1169e8adf20acaa313b63ed/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f7661632f68756274656c2d7061796d656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ovac/hubtel-payment?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/494e3eb0c17f6fcfff509e04331015a11c1e13ffd4af202e1242786858f62f96/68747470733a2f2f706f7365722e707567782e6f72672f6f7661632f68756274656c2d7061796d656e742f762f737461626c65)](https://packagist.org/packages/ovac/hubtel-payment)[![Total Downloads](https://camo.githubusercontent.com/5911edd2c6865db9bcf778a78917b0fdc1c93e253e6872127a2294b7313dc71b/68747470733a2f2f706f7365722e707567782e6f72672f6f7661632f68756274656c2d7061796d656e742f646f776e6c6f616473)](https://packagist.org/packages/ovac/hubtel-payment)[![License](https://camo.githubusercontent.com/7e3391935fc570bc1358b2582747320cb6612fe1ddef0bc2eaee0a54f13c0e1e/68747470733a2f2f706f7365722e707567782e6f72672f6f7661632f68756274656c2d7061796d656e742f6c6963656e7365)](https://packagist.org/packages/ovac/hubtel-payment)[![Dependency Status](https://camo.githubusercontent.com/015881eee9e7450887d2cf699e6d140e46f1613c5397d5ad8af2f2b5c742d6f8/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3539386663636438333638623038313635336338346532652f62616467652e737667)](https://www.versioneye.com/user/projects/598fccd8368b081653c84e2e)

```
 Follow me anywhere @ovac4u                         | GitHub
 _________                          _________       | Twitter
|   ___   |.-----.--.--.---.-.----.|  |  |.--.--.   | Facboook
|  |  _   ||  _  |  |  |  _  |  __||__    |  |  |   | Instagram
|  |______||_____|\___/|___._|____|   |__||_____|   | Github + @ovac
|_________|                        www.ovac4u.com   | Facebook + @ovacposts
```

What is it?
-----------

[](#what-is-it)

OVAC/Hubtel-Payment is a comphrensive PHP client for consuming the Hubtel Mobile Money Payment server API. It's a full-on PHP toolbet sugar-coated by an elegant syntax directly inspired by the [Laravel framework](http://www.laravel.com).

It features a good set of methods and tests for accessing the Hubtel Mobile Money Payment with a **Write as it sounds** syntax. Oh also it is growing all the time.

What's the cherry on top? It wraps nicely around native Guzzlehttp client and uses most of PHP best practices in relation to usability and security. What does this mean? This means that `Pay::receiveMoney()->from(0553577261)->run();` actually places a dynamic call behind the scene in a very secure manner using the phone number as the Customer's idn as required by the Hubtel's Mobile Money Receive Money api and prompts the owner of the phone number as an agent.

Install OVAC\\Hubtel-Payment
----------------------------

[](#install-ovachubtel-payment)

To install OVAC\\HubtelPayment library, simply run

```
$ composer require ovac/hubtel-payment

```

OVAC\\Hubtel-Payment Basic Usage
--------------------------------

[](#ovachubtel-payment-basic-usage)

First Obtain a Hubtel Developer Account Number, ClientID and ClientSecret from

#### The ReceiveMoney class may be used to send a prompt to the customer's phone to receive money like a mobile-money agent as follows:

[](#the-receivemoney-class-may-be-used-to-send-a-prompt-to-the-customers-phone-to-receive-money-like-a-mobile-money-agent-as-follows)

```
