Best laravel framework open-source packages.

Smssender

๐Ÿ’Œ Laravel package that can send SMS through D7 Networks API
Updated 1 year ago

๐Ÿ’Œ SMS Sender

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

๐Ÿ”– License

MIT License

Tags network