PHP code example of ahmadrezaei / mobinone

1. Go to this page and download the library: Download ahmadrezaei/mobinone 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/ */

    

ahmadrezaei / mobinone example snippets


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



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

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

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