PHP code example of myamwso / yeah-verify
1. Go to this page and download the library: Download myamwso/yeah-verify 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/ */
myamwso / yeah-verify example snippets
$this->host = '127.0.0.1'; //主机
$this->dbName = '*****'; //库名
$this->userName = '*****'; //用户名
$this->password = '*****'; //密码
$this->mailTable = 'test'; //表名
$this->redis = new \Redis();
$this->redis->connect('127.0.0.1', 6379); //连接Redis主机以及端口
$this->redis->auth('*****'); //密码验证
$this->redis->select(0);//选择数据库0
$this->proxyKey = 'mail_yeah:proxy_ip_0'; //设置代理的redis缓存
$this->proxyValue = '获取代理地址';