PHP code example of suhaboncukcu / mutlu-sms
1. Go to this page and download the library: Download suhaboncukcu/mutlu-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/ */
suhaboncukcu / mutlu-sms example snippets
//anywhere in your application;
use MutluSms\Utility\MutluSms;
$mutluSmsHandler = new MutluSms([
'ka' => 'username',
'pwd' => 'password',
'org' => 'organisationName'
]);
// METHOD 1
$mutluMessageId = $mutluSmsHandler->create(['message' => 'yourmessage', 'number' => 'targetnumber']);
$mutluSmsHandler->send($mutluMessageId);
// METHOD 2
$mutluSmsHandler->create(['message' => 'yourmessage1', 'number' => 'targetnumber1']);
$mutluSmsHandler->create(['message' => 'yourmessage2', 'number' => 'targetnumber2']);
$mutluSmsHandler->create(['message' => 'yourmessage3', 'number' => 'targetnumber3']);
$mutluSmsHandler->sendAll();