thungdemo/laravel-sms

Laravel wrapper for Thungdemo/Sms library

v1.0.2 2025-05-22 05:23 UTC

This package is auto-updated.

Last update: 2025-05-22 05:32:11 UTC


README

Laravel wrapper for Nksquare/Sms library

Dependencies

This library requires nk-square/sms

Installation

composer require thungdemo/laravel-sms

Publish config file

php artisan vendor:publish --provider="Nksquare\LaravelSms\Providers\SmsServiceProvider" --tag="laravel-sms"

Currently supported driver is textlocal. Add the textlocal credentials to your .env fle

TEXTLOCAL_APIKEY=your_api_key
TEXTLOCAL_SENDER=your_sender

Usage

use Sms;
use Nksquare\LaravelSms\Message;

$message = new Message();
$message->setRecipient('1234567890');
$message->setMessage('foo bar');
Sms::send($message);