PHP code example of wisdech / laravel-smsverify

1. Go to this page and download the library: Download wisdech/laravel-smsverify 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/ */

    

wisdech / laravel-smsverify example snippets


//使用Facade
use Wisdech\SMS\Facade\SMS

SMS::sendVerifyCode($mobile);

SMS::checkVerifyCode($mobile,$code);
bash
#发布配置文件
php artisan vendor:publish --tag=sms-verify-config