PHP code example of rsupan / globelabs

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

    

rsupan / globelabs example snippets


  
    obelabs\SMS;

    $options = [
      'sender_address' => '{your_sender_address}',
      'access_token' => '{your_access_token}',
      'message' => 'hello',
      'address' => '0906xxxxxxx',
    ];

    var_dump(SMS::send_to($options));
  

  
    obelabs\Charging;

    $options = [
      'amount' => '0.00',
      'description' => 'Allowance',
      'msisdn' => '906xxxxxxxx',
      'transactionOperationStatus' => 'Charged',
      'reference_code' => '{reference_code_see_documentation}',
      'access_token' => '{access_token}',
    ];

    var_dump(Charging::charge_to($options));

  

  "      "rsupan/globelabs": "0.0.5"
    }

  
bash
# Install Composer
  curl -sS https://getcomposer.org/installer | php