/oursms

Primary LanguagePHPMIT LicenseMIT

OurSMS

You can send SMS and OTP easily now

image

Installation:

Require this package with composer using the following command:

$ composer require capital/oursms
$ php artisan vendor:publish --provider=Capital\OurSms\OurSmsServiceProvider 

Usage

in .env insert :
OUR_SMS_ID=your_id
OUR_SMS_KEY=your_key

you 'll find it in https://oursms.app

to send one sms :
use Capital\OurSms\Send;
.
.
.
Send::oneSms('07*********', 'Your Message');
to send one sms :
use Capital\OurSms\Send;
.
.
.
Send::otp('07*********', 'OTP expire time in minutes');
check OPT :
use Capital\OurSms\Send;
.
.
.
Send::checkOTP('07*********', 'OTP Code');
get message status :
use Capital\OurSms\Send;
.
.
.
Send::status('messageID');
Note :
You can use phone number format like that:
07*********
7*********
9647*********

License

OutSms is free software licensed under the MIT license.