Download the PHP package iagofelicio/laravel-gmail-oauth2 without Composer
On this page you can find all versions of the php package iagofelicio/laravel-gmail-oauth2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iagofelicio/laravel-gmail-oauth2
More information about iagofelicio/laravel-gmail-oauth2
Files in iagofelicio/laravel-gmail-oauth2
Package laravel-gmail-oauth2
Short Description Send emails with Gmail OAuth2 credentials instead of SMTP default access information
License MIT
Informations about the package laravel-gmail-oauth2
Send emails with Gmail OAuth2 credentials
This Laravel package allows you to send emails securely using Gmail OAuth2 credentials, eliminating the need to store sensitive information like username and password in your application configuration.
Support us
This package is actively maintained and free to use. If you find it helpful, consider giving back by:
- Reporting any issues or suggesting improvements through GitHub issues.
- Contributing code or documentation changes via pull requests.
- Leaving a star on the repository to show your appreciation. Your support helps keep this project alive and thriving!
- Supporting me on Ko-fi
Installation
You can install the package via composer:
For PHP 8 and Laravel 9:
For PHP 7 and Laravel 7/8:
Gmail Credentials
To obtain a Gmail OAuth2 refresh token, you can refer to the instructions provided by the PHPMailer package on Github https://github.com/PHPMailer.
For detailed instructions on generating a Gmail OAuth2 refresh token, we recommend following the excellent tutorial provided by Coding Yet https://www.codingyet.com/how-to-use-phpmailer-with-xoauth2/.
This tutorial walks you through the process step-by-step, ensuring a smooth setup for your secure email sending.
Usage
(Step 1) For PHP 7 and Laravel 7/8:
Edit config/mail.php
adding the following line:
(Step 1) For PHP 8 and Laravel 9:
Edit config/mail.php
adding the following mailer:
Edit the MAIL_MAILER in .env
file:
(Step 2) For Laravel 7, 8 and 9:
Add your Gmail credentials in .env
file:
Testing
Pending development.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Iago Felicio
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-gmail-oauth2 with dependencies
league/oauth2-google Version ^4.0
illuminate/support Version ^7|^8|^9
phpmailer/phpmailer Version ^6.9