PHP code example of jalallinux / smsirlaravel

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

    

jalallinux / smsirlaravel example snippets


'webservice-url' => env('SMSIR_WEBSERVICE_URL','https://ws.sms.ir/'),

'api-key' => env('SMSIR_API_KEY','Your sms.ir api key'),

'secret-key' => env('SMSIR_SECRET_KEY','Your sms.ir secret key'),

'line-number' => env('SMSIR_LINE_NUMBER','Your sms.ir line number'

Smsirlaravel::send($messages, $numbers, $sendDateTime = null);

Smsirlaravel::sendVerification($code, $number, $log = false);

Smsirlaravel::ultraFastSend(array $parameters, $template_id, $number);

Smsirlaravel::credit();

Smsirlaravel::getLines();

Smsirlaravel::addToCustomerClub($prefix, $firstName, $lastName, $mobile, $birthDay = '', $categotyId = '')

Smsirlaravel::sendToCustomerClub($messages, $numbers, $sendDateTime = null, $canContinueInCaseOfError = true);

Smsirlaravel::deleteContact($mobile);

Smsirlaravel::addContactAndSend($prefix, $firstName, $lastName, $mobile, $message, $birthDay = '', $categotyId = '');

Smsirlaravel::getReceivedMessages($perPage, $pageNumber, $formDate, $toDate);

Smsirlaravel::getSentMessages($perPage, $pageNumber, $formDate, $toDate);

Smsirlaravel::getSentMessage($bulk);
shell
php artisan vendor:publish
shell
php artisan migrate