erfankatebsaber / bale-otp
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/erfankatebsaber/bale-otp
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 )