capital / oursms
oursms implementation
dev-main
2021-06-08 20:50 UTC
This package is auto-updated.
Last update: 2024-12-09 01:41:55 UTC
README
You can send SMS and OTP easily now
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.