2017 © Pedro Peláez
 

library airtime

CAMOO API Packages

image

camoo/airtime

CAMOO API Packages

  • Sunday, May 28, 2017
  • by camoo
  • Repository
  • 0 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

Airtime

PHP API for Mobile phone TOPUP N|Solid, (*1)

PHP TOPUP API via the CAMOO AIRTIME gateway, (*2)

Requirement

This library needs minimum requirement for doing well on run., (*3)

  • Sign up for a free CAMOO account
  • Ask CAMOO Team for new access_key for developers
  • CAMOO TOPUP API client for PHP requires version 5.5.x and above

Installation via Composer

Package is available on Packagist, you can install it using Composer., (*4)

composer require camoo/airtime

Quick Examples, (*5)

1) Get available general info about destination msisdn, (*6)

require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
// set api_key and secret_key
$oAirtime = new \CAMOO\Airtime\Airtime('592595095gh57', '4e32da5979879b89479847b9798479494984');

// receiver recipient
$oAirtime->destination_msisdn='237671234567';
#Retrieve MsisdnInfo
$ohMsisdnInfo = $oAirtime->getMsisdnInfo();

2) Check available topup list and wholsale price list, (*7)

  $sTopupList = $ohMsisdnInfo->msisdn_info->topup_list;
  // your prices for each topup product
  $sWholeSalePriceList = $ohMsisdnInfo->msisdn_info->wholesale_price_list;

3) Choose a topup amount from the key topup_list and send airtime php // airtime from $oAirtime->msisdn= '237661562859'; // airtime product $oAirtime->topup=100; var_dump($oAirtime->send());, (*8)

Running Tests

Assuming you have PHPUnit installed system wide using one of the methods stated here, you can run the tests for CAMOO/Aitime by doing the following:, (*9)

  1. Go to library root cd vendor/camoo/airtime
  2. Copy phpunit.xml.dist to phpunit.xml.
  3. Run phpunit tests.

The Versions

28/05 2017

dev-master

9999999-dev https://camoo.cm

CAMOO API Packages

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.5.0

by CAMOO SARL

airtime camoo topup

28/05 2017

2.0.4

2.0.4.0 https://camoo.cm

CAMOO API Packages

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.5.0

by CAMOO SARL

airtime camoo topup

28/05 2017

2.0.3

2.0.3.0

CAMOO API Packages

  Sources   Download

The Requires

 

The Development Requires

  • php >=5.5.0

by CAMOO SARL

airtime camoo topup

28/05 2017

v2.0.2

2.0.2.0

CAMOO API Packages

  Sources   Download

The Requires

 

The Development Requires

  • php >=5.5.0

by CAMOO SARL

airtime camoo topup