Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 697 Bytes

README.md

File metadata and controls

50 lines (32 loc) · 697 Bytes

🔧 package


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