PHP code example of nimbuz / sms
1. Go to this page and download the library: Download nimbuz/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/ */
nimbuz / sms example snippets
$oMessage = \Nimbuz\Sms\Message::create('YOUR_LOGIN', 'YOUR_PASSWORD');
$oMessage->from ='YourCompany';
$oMessage->to = '+237612345678';
$oMessage->message ='Hello Kmer World! Déjà vu!';
var_dump($oMessage->send());
$oMessage = \Nimbuz\Sms\Message::create('YOUR_LOGIN', 'YOUR_PASSWORD');
$oMessage->from ='YourCompany';
$oMessage->to =['+237612345678', '+237612345679', '+237612345610'];
$oMessage->message ='Hello Kmer World! Déjà vu!';
var_dump($oMessage->send());