New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

merkeleon/laravel-sms

Table functionality for Laravel collections
14,064 1
Install
composer require merkeleon/laravel-sms
Latest Version:1.0.8
PHP:>=5.4.0
Laravel:5 · 6 · 7
License:MIT
Last Updated:Mar 10, 2022
Links: GitHub  ·  Packagist
Maintainer: codeator

Laravel SMS

Laravel module for send SMS

Installation

To install from Composer, use the following command:

composer require merkeleon/laravel-sms

Now, add the following optional line(s) to your .env file:

# default driver for writing sms message in log file
SMS_DRIVER=log

Add the sms.php config:

php artisan vendor:publish --provider="Merkeleon\SMS\Providers\SMSServiceProvider"

Next, add the facade to your aliases array in Laravel as follows:

<?php
return [
    'aliases' => [
        //...
        'SMS' => Merkeleon\SMS\Facades\SMS::class
        //...
    ],
];

Usage Examples

Send SMS

SMS::send('+0000000000', 'SMS message!');

Available drivers

The following drivers are available for sending messages:

  • log: (default) writing sms message in log file
SMS_DRIVER=log
SMS_DRIVER=clickatellV1
SMS_CLICKATELL_TOKEN=your_token_value
SMS_DRIVER=clickatellV2
SMS_CLICKATELL_TOKEN=token_value
SMS_DRIVER=nexmo
SMS_NEXMO_KEY=your_key_value
SMS_NEXMO_SENDER=your_secret_value
SMS_NEXMO_SENDER=your_sender_value
SMS_NEXMO_MAX_ATTEMPT_NUMBER=10
SMS_DRIVER=smsc
SMS_SMSC_LOGIN=your_login_value
SMS_SMSC_PASSWORD=your_password_value
SMS_SMSC_SENDER=your_sender_value
SMS_DRIVER=cryptosasa
SMS_CRYPTOSASA_URL=cryptosasa_api_url_value
SMS_CRYPTOSASA_USERNAME=your_username_value
SMS_CRYPTOSASA_SECRET=your_secret_value

Related Packages

ohanspace/sms

this is a sms package made for laravel

11 0
sms
midnite81/laravel-base

Base Functionality for Laravel

35,582 3
lbhurtado/sms

Driver-based SMS component in Laravel inspired by the tutorial of Orobo Lucky

9,787 0
huangdijia/laravel-sms

sms for laravel

7,434 2
alhaji-aki/laravel-sms

A package that allows developers integrate sms providers and provide a common ap...

6,031 2

Version History

Version Released PHP Laravel License
1.0.8 >=5.4.0 >=5.0 MIT
1.0.7 >=5.4.0 5.*|6.* MIT
1.0.6 >=5.4.0 ~5.6 MIT
1.0.5 >=5.4.0 ~5.6 MIT
1.0.4 >=5.4.0 ~5.6 MIT