New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

oralunal/gmail-api-for-laravel

A Laravel package that allows you to use Gmail API as a mail driver
1,775 7
Install
composer require oralunal/gmail-api-for-laravel
Latest Version:1.1.0
PHP:^8.3
Laravel:12 · 13
License:MIT
Last Updated:Mar 24, 2026
Links: GitHub  ·  Packagist
Maintainer: oralunal

Gmail API For Laravel

Latest Version on Packagist Total Downloads

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.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released PHP Laravel License
1.1.0 ^8.3 ^12 || ^13 MIT
1.0.2 ^8.3 ^12 MIT
1.0.1 ^8.3 ^12 MIT
1.0.0 ^8.3 ^12 MIT