A simple API extension for sending text messages via Vip Sms

1.1.1 2023-08-23 07:59 UTC

This package is auto-updated.

Last update: 2024-04-24 18:56:17 UTC


README

Vip Sms is a Laravel package that provides a convenient and easy-to-use way to send SMS messages. With this package, developers can quickly integrate SMS functionality into their Laravel applications. Whether it's sending notifications, alerts, or marketing messages, Vip Sms simplifies the process and allows for seamless communication with users via SMS.

Support Drivers

Raygan Sms

Mediana

Installation

with composer

  composer require alirezaabdolmaleki/vip-sms:1.1.1

Usage

//config/app.php


//providers
.
.
Alirezaabdolmaleki\VipSms\VipSmsServiceProvider::class,
.
.


//aliases
.
.
 'Sms' => Alirezaabdolmaleki\VipSms\Facades\VipSms::class
.
.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

SMS_DRIVER

SMS_USERNAME

SMS_PASSWORD

SMS_SENDER_NUMBER

if you want to publish config

php artisan vendor:publish --provider=Alirezaabdolmaleki\VipSms\VipSmsServiceProvider

Documentation

Send Message

use Alirezaabdolmaleki\VipSms\Facades\Sms;

Sms::send("09123456789", "your message");

Send Message by Pattern (only mediana driver)

use Alirezaabdolmaleki\VipSms\Facades\Sms;

   $datas = [
        'variable1' => "test variable 1",
        'variable1' => 'test variable 2',
    ];
    
Sms::sendByPattern("09123456789", $datas, 'c207ascp17oglp8');

Related

Here are some related projects

Awesome README

🔗 Links

github linkedin