phpauth/phpauth.mailer.phpmailer
最新稳定版本:0.99.1
Composer 安装命令:
composer require phpauth/phpauth.mailer.phpmailer
包简介
PHPMailer driver for PHPAuth
README 文档
README
$config = new \PHPAuth\Config($pdo); $config->setMailer(new \PHPAuth\Mailer\PHPMailerDriver([ 'debug' => true, 'auth' => true, 'username' => 'your-email@gmail.com', 'password' => 'your-password', 'secure' => \PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS, // 'tls' // OR 'secure' => \PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_SMTPS, // 'ssl' 'host' => 'smtp.gmail.com', 'port' => 587, // relative to security type // setFrom 'site_email' => 'noreply@yoursite.com', 'site_name' => 'Your Site' ])); $auth = new \PHPAuth\Auth($pdo, $config);
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: Unknown
- 更新时间: 2026-01-17