LaravelPackages.net
Acme Inc.
Toggle sidebar
thungdemo/laravel-sms

Laravel wrapper for Thungdemo/Sms library

0
0
v1.0.2
About thungdemo/laravel-sms

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-sms

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);
Comments