oralunal/gmail-api-for-laravel
最新稳定版本:1.0.2
Composer 安装命令:
composer require oralunal/gmail-api-for-laravel
包简介
A Laravel package that allows you to use Gmail API as a mail driver
README 文档
README
A Laravel package that allows you to use Gmail API as a mail driver.
Features
- Use Gmail API instead of SMTP
- Using OAuth 2.0 for server-to-server authentication
- Full Laravel mail system integration
- Laravel 12.x support
- Auto-discovery (no manual registration needed)
Support me
Your support is not required or expected, but we would appreciate it.
Installation
You can install the package via composer:
composer require oralunal/gmail-api-for-laravel
Below are the contents of the published config file:
return [ 'credentials_json_full_path' => env('GMAIL_API_CREDENTIALS_JSON_FULL_PATH', false), ];
You should update the credentials_json_full_path value in your .env file.
GMAIL_API_CREDENTIALS_JSON_FULL_PATH=/full/path/to/credentials.json
Usage
Update MAIL_MAILER and MAIL_FROM_ADDRESS in your .env file.
MAIL_MAILER=gmail-api
MAIL_FROM_ADDRESS=you@domain.com
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 558
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-25