PHP code example of cynojine / zmtnmomo
1. Go to this page and download the library: Download cynojine/zmtnmomo library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cynojine / zmtnmomo example snippets
use Cynojine\Mtnmomo\Products\Collection;
$options = [
'subscriptionKey' => '', //Add Subscription key
'xReferenceId' => '', //Api user reference id (in UUID format) Generate your UUID https://www.uuidgenerator.net/
'apiKey' => '', // Api user key (Supply this after generating it
];
// collection
$collection = Collection::create($options);