PHPackages                             oralunal/gmail-api-for-laravel - 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. oralunal/gmail-api-for-laravel

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

oralunal/gmail-api-for-laravel
==============================

A Laravel package that allows you to use Gmail API as a mail driver

1.1.0(3mo ago)71.5k↓83.8%[1 issues](https://github.com/oralunal/gmail-api-for-laravel/issues)MITPHPPHP ^8.3

Since Sep 25Pushed 3mo agoCompare

[ Source](https://github.com/oralunal/gmail-api-for-laravel)[ Packagist](https://packagist.org/packages/oralunal/gmail-api-for-laravel)[ Docs](https://github.com/oralunal/gmail-api-for-laravel)[ RSS](/packages/oralunal-gmail-api-for-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Gmail API For Laravel
=====================

[](#gmail-api-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/99a11b15698e86c0902a7e73c7dc4781c40dfa6ea23c89e8a6911d957f83cf46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f72616c756e616c2f676d61696c2d6170692d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oralunal/gmail-api-for-laravel)[![Total Downloads](https://camo.githubusercontent.com/36fe283246025763f6499bdea87d5e49bc29c8f9de42acfee28eeba8aed9ab04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f72616c756e616c2f676d61696c2d6170692d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oralunal/gmail-api-for-laravel)

A Laravel package that allows you to use Gmail API as a mail driver.

Features
--------

[](#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
----------

[](#support-me)

Your support is not required or expected, but we would appreciate it.

Installation
------------

[](#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
-----

[](#usage)

Update `MAIL_MAILER` and `MAIL_FROM_ADDRESS` in your `.env` file.

```
MAIL_MAILER=gmail-api
MAIL_FROM_ADDRESS=you@domain.com

```

Credits
-------

[](#credits)

- [Oral Ünal](https://github.com/oralunal)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance77

Regular maintenance activity

Popularity25

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~60 days

Total

4

Last Release

103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e5f91240abd67ed47abf703e5069261011ff82f47f864ba68a5511bbddeea62?d=identicon)[oralunal](/maintainers/oralunal)

---

Top Contributors

[![oralunal](https://avatars.githubusercontent.com/u/1948737?v=4)](https://github.com/oralunal "oralunal (5 commits)")

---

Tags

gmailgmail-apigmail-api-laravelgmail-api-wrapperlaravellaravel-gmaillaravel-gmail-apiphplaraveloralunalgmail-api-for-laravel

### Embed Badge

![Health badge](/badges/oralunal-gmail-api-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/oralunal-gmail-api-for-laravel/health.svg)](https://phpackages.com/packages/oralunal-gmail-api-for-laravel)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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