ahmadrezaei/mobinone

mobin one VAS package

v1.0.1 2019-06-10 11:55 UTC

This package is auto-updated.

Last update: 2024-05-10 22:26:31 UTC


README

Install package by composer

composer require ahmadrezaei/mobinone

create config.php file and enter yor data:

$username = '';
$password = '';
$shortCode = '';
$serviceKey = '';
$chargeCode = '';

Import vendor and config.php in your files and create class instance:

require_once 'config.php';
require_once 'vendor/autoload.php';

$phoneNumber = ''; // user phone number like $_SESSION['phone']
$mobin = new \ahmadrezaei\mobinone\MobinOne($username, $password, $shortCode, $serviceKey, $phoneNumber);

Now you can use the methods:

$mobin->sendSMS(); // send SMS to user
$mobin->inAppCharge(); // send register request
$mobin->inAppChargeConfirm(); // confirm register request by code
$mobin->randomString() // create rando string

Examples

the are 3 example page in the package, you can use the package like this files:

sample.php // for register user
notificaion.php // for handle service notifications
mp.php // for handle MO messages