PHPackages                             milind/laravel-gmail-mail-driver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. milind/laravel-gmail-mail-driver

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

milind/laravel-gmail-mail-driver
================================

This package is used to provide gmail mail driver for the laravel

0.2(5y ago)17.3k—2.8%MITPHP

Since Feb 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/little-isaac/laravel-gmail-mail-driver)[ Packagist](https://packagist.org/packages/milind/laravel-gmail-mail-driver)[ RSS](/packages/milind-laravel-gmail-mail-driver/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

laravel-gmail-mail-driver
=========================

[](#laravel-gmail-mail-driver)

This package is used to provide gmail email service provider for the email driver in laravel.

### This is simple wrapper so you need to manage authentication and app approval process on your end and also need to manage refreshing the access token process on your end as well.

[](#this-is-simple-wrapper-so-you-need-to-manage-authentication-and-app-approval-process-on-your-end-and-also-need-to-manage-refreshing-the-access-token-process-on-your-end-as-well)

Add new `mailers` driver in `config/mail.php` as below
------------------------------------------------------

[](#add-new-mailers-driver-in-configmailphp-as-below)

```
'gmail' =>[
    'transport' => 'gmail'
]

```

Add new `gmailmailer` service in `config/services.php` as below
---------------------------------------------------------------

[](#add-new-gmailmailer-service-in-configservicesphp-as-below)

```
'gmailmailer' => [
    'AppName' => 'Your-app-name',
    'scopes' => [
        /* We need both the scopes for the API to send the email */
        Google_Service_Gmail::GMAIL_READONLY, // This scope is used to get the user's email address (From which we are sending emails)
        Google_Service_Gmail::GMAIL_SEND      // This scope is used to send the emails.
    ],
    'authConfig' => [
    /*
    *  We are getting this details from the Google console.
    *
    */
        "web" => [
            "client_id" => env('GOOGLE_EMAIL_SEND_API_CLIENT_ID'),
            "client_secret" => env('GOOGLE_EMAIL_SEND_API_CLIENT_SECRET'),
            "redirect_uris" => [
                env('GOOGLE_EMAIL_SEND_API_REDIRECT')
            ],
        ]
    ],
    'tokenType' => 'offline',
    'prompt' => 'select_account consent',
]

```

You also need to add accesstoken recevied from the google account to the gmailmailer dynamically / Manually
-----------------------------------------------------------------------------------------------------------

[](#you-also-need-to-add-accesstoken-recevied-from-the-google-account-to-the-gmailmailer-dynamically--manually)

### I personally prefer dynamically

[](#i-personally-prefer-dynamically)

You need to add it as array

```
Config::set('services.gmailmailer.accesstoken', $accessToken);

```

Where `$accessToken` will be as follows

```
$accessToken = [
    "access_token" => "...",
    "expires_in" => ...,
    "refresh_token" => "...",
    "scope" => "...",
    "token_type" => "...",
    "created" => ...
];

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1964d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd0035e6fda13036e33240c5018bba0914101219b774998cebb073c4a7ef2abe?d=identicon)[little-isaac](/maintainers/little-isaac)

### Embed Badge

![Health badge](/badges/milind-laravel-gmail-mail-driver/health.svg)

```
[![Health](https://phpackages.com/badges/milind-laravel-gmail-mail-driver/health.svg)](https://phpackages.com/packages/milind-laravel-gmail-mail-driver)
```

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[redjanym/php-firebase-cloud-messaging

PHP SDK for Firebase Cloud Messaging from Google

37864.6k2](/packages/redjanym-php-firebase-cloud-messaging)[devkandil/notifire

A Laravel package for sending Firebase Cloud Messaging (FCM) notifications

7820.7k](/packages/devkandil-notifire)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[paxha/laravel-fcm

This package provides (Laravel Notification) channels for sending notifications via FCM (Firebase Cloud Messaging) using HTTP v1 API.

102.2k](/packages/paxha-laravel-fcm)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
