isaacdarcilla / smssender
Send SMS through D7 Networks API
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.0.0
2020-09-06 00:57 UTC
This package is auto-updated.
Last update: 2023-03-20 13:31:16 UTC
README
Laravel package that can send SMS through D7 Networks API. Send SMS using Laravel.
⬇️ Installation
The suggested installation method is via composer:
composer require "isaacdarcilla/smssender:^1.0.0"
👏 Prerequisite
You must register for an SMS API Token from D7Networks first.
❓ Usage
Send a simple SMS using the code snippet below. In your laravel routes/web.php
,
add the code snippets. The $token
parameter is your SMS API Token from D7Networks, $to
parameter is the receiver phone number, $from
is the sender, $message
parameter is your message to be sent. To enable debug, set the debug to true
and false
to disable it.
use Isaacdarcilla\Smssender\Smssender; Route::get('/send', function () { $sms = new Smssender(); return $sms->send($token, $to, $from, $message, true); });