PHP code example of smsbrana / sms-connect

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

    

smsbrana / sms-connect example snippets


use \Neogate\SmsConnect\SmsConnect;
$smsConnect = new SmsConnect('<your_login>', '<secret_password>');
$smsConnect->getInbox();

use \Neogate\SmsConnect\SmsConnect;
$smsConnect = new SmsConnect('<your_login>', '<secret_password>');
$smsConnect->sendSms('<phone_number>', '<text_sms>');

$smsConnect->addRecipient('<phone_number>', '<text_sms>');
$smsConnect->addRecipient('<another_number>', '<another_sms>');
$smsConnect->sendBulk();

/** @var SmsConnect */
private $smsConnect;

public function injectSmsConnectExtension(SmsConnect $smsConnect)
{
    $this->smsConnect = $smsConnect;
}