1. Go to this page and download the library: Download codexoft/mobilesasa-sdk 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/ */
codexoft / mobilesasa-sdk example snippets
use Codexoft\MobilesasaSDK\Mobilesasa;
$config = [
'senderId' => 'YOUR_SENDER_ID',
'apiKey' => 'YOUR_API_KEY',
'mobileServeyKey' => 'YOUR_SURVEY_KEY',
'showBalance' => true, // Optional: Show balance in responses
'shortCode' => 'YOUR_SHORT_CODE' // Optional: For short code messaging
];
$mobilesasa = new Mobilesasa($config);