thungdemo/laravel-sms is a Laravel package for laravel wrapper for thungdemo/sms library.
It currently has 0 GitHub stars and 0 downloads on Packagist (latest version v1.0.2).
Install it with composer require thungdemo/laravel-sms.
Discover more Laravel packages by thungdemo
or browse all Laravel packages to compare alternatives.
Last updated
Laravel wrapper for Nksquare/Sms library
This library requires nk-square/sms
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
use Sms;
use Nksquare\LaravelSms\Message;
$message = new Message();
$message->setRecipient('1234567890');
$message->setMessage('foo bar');
Sms::send($message);