PHP code example of aqlx86 / sms-otp
1. Go to this page and download the library: Download aqlx86/sms-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/ */
aqlx86 / sms-otp example snippets
SMSOTP\SMSOTPServiceProvider::class
php artisan vendor:publish --provider="SMSOTP\SMSOTPServiceProvider"
php artisan migrate
class CustomSMSProvider implemnts SMSOTP\Contract\SMSGateway
{
public function send($number, $message)
{
// your implemention
}
}
config/smsotp.php