Looking to hire Laravel developers? Try LaraJobs

smsint-for-laravel maintained by icekristal

Description
SMSINT API for Laravel
Author
Last update
2026/05/01 17:19 (dev-master)
License
Links
Downloads
54

Comments
comments powered by Disqus

smsint for laravel

Integration service smsint for laravel

Documentation: https://lcab.smsint.ru/cabinet/json-doc/sender

install:

composer require icekristal/smsint-for-laravel

Add to config/services.php

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

Publish config:

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

Publish migrations:

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

Use:

php artisan migrate

Use SMS:

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 required params in documentation
$service->sendSms();

$infoStatus = Smsint::getSmsStatus(["2", "3"]);