erfankatebsaber / bale-otp
There is no license information available for the latest version (v1.0.0) of this package.
v1.0.0
2025-07-01 16:47 UTC
Requires
- php: ^8.0
- illuminate/support: >=7.0
README
install package
run this command:
composer erfankatebsaber/bale-otp
define provider
Add this line in config/app.php
:
return [ // other props... 'providers' => ServiceProvider::defaultProviders()->merge([ // other providers... ErfanKatebSaber\BaleOtp\BaleOtpProvider::class ])->toArray(), ];
Publish files (optional)
Run this command to publish config files:
php artisan vendor:publish --provider="ErfanKatebSaber\BaleOtp\BaleOtpProvider"
ENV
Define this:
BALE_OTP_USERNAME=[YOUR USERNAME] BALE_OTP_PASSWORD=[YOUR PASSWORD]
Send Otp
Use this code:
use \ErfanKatebSaber\BaleOtp\BaleOtp; BaleOtp::setUp()->sendOtp( "989123456789", // phone number with international prefix '12345' // otp code )