mahdiidea/sms-ir-laravel6

There is no license information available for the latest version (1.5) of this package.

Send sms message with laravel 6

1.5 2019-10-01 15:10 UTC

This package is auto-updated.

Last update: 2020-01-15 09:01:07 UTC


README

Via composer

composer require mahdiidea/sms-ir-laravel6

Config

Add the following provider to providers part of config/app.php

MahdiIDea\SmsIrLaravel6\SmsIrServiceProvider::class

Now add Sms.Ir info to config/app.php

'SMS_IR_LINE' => 'Your line',
'SMS_IR_SECRET_KEY' => 'Your secret key',
'SMS_IR_API_KEY' => 'Your APi key',

Methods

send message

SmsResolver::instance()->send($phone,$text);

get credit

$credit = SmsResolver::instance()->credit();

get sms lines

$lines = SmsResolver::instance()->lines();

send verification code

$lines = SmsResolver::instance()->verification($phone, $code);

ultra Fast Send

SmsResolver::instance()->ultraFastSend([‘user’=>’username’,’verificationCode’=>’12345′],350,’09123456789′);