PHP code example of tmoh / nimba-sms
1. Go to this page and download the library: Download tmoh/nimba-sms 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/ */
tmoh / nimba-sms example snippets
use Tmoh\NimbaSms\Facades\NimbaSms;
try {
// Send SMS
$response = NimbaSms::sendSms('623123456', 'Hello World!');
// Get account info
$account = NimbaSms::getAccounts();
// Get sender names
$senderNames = NimbaSms::getSenderNames();
// Get webhooks
$webhooks = NimbaSms::getWebhooks();
// Get purchases
$purchases = NimbaSms::getPurchases();
} catch (Exception $e) {
echo $e->getMessage();
}
bash
php artisan vendor:publish --provider="Tmoh\NimbaSms\NimbaSmsServiceProvider" --tag="config"