1. Go to this page and download the library: Download uzbek/laravel-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/ */
uzbek / laravel-sms example snippets
use Uzbek\Sms\Facades\Sms;
$message = Sms::to('+998901234567')->text('Salom!')->send();
$message->successful; // bool — the pipeline never throws on transport errors
$message->providerMessageId; // for status checks
$message->errorMessage; // set when failed
// Fluent — the main API
Sms::to('+998901234567')
->text('Salom!')
->from('4546') // sender/nickname override
->otp() // OTP flag (TextUp tariff)
->useFallback('playmobile')
->send();
// Every entry point resolves the same drivers:
sms()->send($phone, $text); // helper, default provider
sms('playmobile')->to($phone)->text($t)->send();
app(\Uzbek\Sms\Contracts\Driver::class); // DI, default provider
EskizSms::to($phone)->text($t)->send(); // per-provider facades
use Uzbek\Sms\Data\OutboundMessage;
Sms::many(OutboundMessage::sameText(['+99890...', '+99891...'], 'Bir matn'))->send();
Sms::many([
new OutboundMessage('+99890...', 'Birinchi'),
new OutboundMessage('+99891...', 'Ikkinchi'),
])->send(); // Collection<SentMessage>, input order preserved
$message->segments(); // SegmentInfo: encoding, length, segments, perSegment
$message->cost(); // segments × price_per_segment config; null without a price
$message->updateStatus(DeliveryStatus::Delivered); // dispatches DeliveryStatusUpdated → syncs sms_logs
$message->refreshStatus(); // polls the provider (ChecksDeliveryStatus), then updateStatus()
Sms::to($phone)->text($t)->queue(); // default queue
Sms::to($phone)->text($t)->queue('sms'); // named queue
Sms::to($phone)->text($t)->later(now()->addMinutes(10)); // delayed
Sms::many($messages)->later(now()->setTime(9, 0), 'sms'); // campaign at 09:00
Sms::to($phone)->text("Kod: {$code}")->dedupe("otp:{$userId}", 300)->send(); // or ->queue()