PHP code example of erfankatebsaber / bale-otp
1. Go to this page and download the library: Download erfankatebsaber/bale-otp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
erfankatebsaber / bale-otp example snippets
return [
// other props...
'providers' => ServiceProvider::defaultProviders()->merge([
// other providers...
ErfanKatebSaber\BaleOtp\BaleOtpProvider::class
])->toArray(),
];
use \ErfanKatebSaber\BaleOtp\BaleOtp;
BaleOtp::setUp()->sendOtp(
"989123456789", // phone number with international prefix
'12345' // otp code
)
shell
php artisan vendor:publish --provider="ErfanKatebSaber\BaleOtp\BaleOtpProvider"