DEPRECATED! Please check MessageWay
Send OTP for one-time password and mobile number verification code from various SMS, voicemail, messaging, and smart hybrid channels. This package allows you to connect to gsOTP.com server from your laravel applications.
Via Composer
$ composer require globalsmartotp/laravel-otp
#Or if using Laravel Sail
$ sail composer require globalsmartotp/laravel-otp
Publish
$ php artisan vendor:publish --tag=laravel-otp.config
#Or if using Laravel Sail
$ sail artisan vendor:publish --tag=laravel-otp.config
Please register on gsOTP.com and get apiKey
Please add environment on .env
file
GS_OTP_API_KEY=''
GS_OTP_SEND_METHOD=sms
GS_OTP_TEMPLATE_ID=3
$referenceID = LaravelOTP::send($mobile);
$status = LaravelOTP::status($referenceID);
$verify = LaravelOTP::verify($mobile, $otp);
MIT.