azima/sms

Laravel SMS Gateway Integration Package

dev-main 2023-03-28 21:20 UTC

This package is auto-updated.

Last update: 2024-11-29 01:07:27 UTC


README


This Package For Handling Multiable Message Using End Point

 https://gateway.sa/

📦 Install

Via Composer

$ composer require azima/sms

âš¡ Configure

Publish the config file

$ php artisan sms:publish

🔥 Usage

In your env file just use it like this. 

GATEWAY_SA_URL=
GATEWAY_SA_USER=
GATEWAY_SA_PASSWORD=
GATEWAY_SA_SENDER_ID=

# On the top of the file.
use Azima\Sms\Facades\Sms;

...

# In your Controller.
Sms::send("this message", function($sms) {
    $sms->to(['Number 1', 'Number 2']); # The numbers to send to.
});
# OR...
Sms::send("this message")->to(['Number 1', 'Number 2'])->dispatch();