PHP code example of icekristal / smsint-for-laravel

1. Go to this page and download the library: Download icekristal/smsint-for-laravel 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/ */

    

icekristal / smsint-for-laravel example snippets


composer 

 'smsint' => [
    'token' => env('SMSINT_TOKEN'),
    'url' => env('SMSINT_URL', "https://lcab.smsint.ru/json/"),
    'version' => env('SMSINT_API_VERSION', "v1.0"),
],

php artisan vendor:publish --provider="Icekristal\SmsintForLaravel\SmsintServiceProvider" --tag='config'

php artisan vendor:publish --provider="Icekristal\SmsintForLaravel\SmsintServiceProvider" --tag='migrations'


php artisan migrate

use Icekristal\SmsintForLaravel\Facades\Smsint;

$phone = ["+79007778899", "+37008009900"];
$textMessage = "Test message integration for service smsint";
$service = Smsint::setRecipients($phone);
$service->setSenderName("SenderName");
$service->setMessage($textMessage);
$service->setIsOnlyValid(true); //true - no send, only check.
$service->setParams([$params]); //set no