PHPackages                             entap/symfony-googleworkspace-mailer - 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. entap/symfony-googleworkspace-mailer

ActiveSymfony-mailer-bridge[Mail &amp; Notifications](/categories/mail)

entap/symfony-googleworkspace-mailer
====================================

symfony mailer driver for google workspace gmail

11681PHP

Since Jun 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/entap/symfony-googleworkspace-mailer)[ Packagist](https://packagist.org/packages/entap/symfony-googleworkspace-mailer)[ RSS](/packages/entap-symfony-googleworkspace-mailer/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Symfony mailer driver for Google Workspace
==========================================

[](#symfony-mailer-driver-for-google-workspace)

Gmail APIによるsymfony mailerドライバーです。Laravelで使うことを想定しています。 Google Workspaceのドメイン全体の委任を受けたサービスアカウントが必要です。

メリット
----

[](#メリット)

Gmail経由でメールが送信されるので、GoogleWorkspaceを導入した組織がメールマーケティングを行う上では、少し幸せになれます。

- OAuth2認証のGmail APIと違い、組織内のメールアドレスであれば、代わりにメールが送信できる。
- メールの送信元のアイコン画像が表示される
- SPAM対策が楽
- メールボックスの送信履歴に残る

デメリット
-----

[](#デメリット)

Gmail APIには送信制限があるので、注意してください。

Laravelへの導入の仕方
--------------

[](#laravelへの導入の仕方)

### サービスアカウントの作成と設定

[](#サービスアカウントの作成と設定)

まず、下記の手順に従い、サービスアカウントを作成してください。 その際、Google Workspaceの権限付与で下記のスコープを追加してください。 `https://www.googleapis.com/auth/gmail.send`

※ Gmail APIの全てを許可する`https://mail.google.com/` だとこの実装ではダメです。

### プロジェクトへの導入手順

[](#プロジェクトへの導入手順)

composerでインストールしてください。

```
composer install laravel-googleworkspace-mailer

```

config/mail.phpに設定を追加してください。

```
'google-workspace' => [
    'transport' => 'google-workspace',
    'credentials' => env('MAIL_GOOGLEWORKSPACE_CREDENTIALS', base_path('google-credentials.json')),
]

```

サービスアカウントの"鍵"で発行されるcredentials.jsonを、プロジェクトのrootにgoogle-credentials.jsonを配置してください。

本番環境ではセキュアな場所に配置することをおすすめします。

```
'google-workspace' => [
    'transport' => 'google-workspace',
    'credentials' => env('MAIL_GOOGLEWORKSPACE_CREDENTIALS', base_path('google-credentials.json')),
]

```

AppServiceProvider.phpのboot()で下記を呼び出してください。

```
Mail::extend('google-workspace', function (array $config = []) {
    return new GoogleWorkspaceTransport($config);
});

```

あとは通常通りのMail::mailer('google-workspace')-&gt;send(...)などで送信できます。

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/928ecf264a506a1eb7bdc45344a67d53932d290211e6ffd5dab93d4ffb0ac0ad?d=identicon)[toshity1980](/maintainers/toshity1980)

---

Top Contributors

[![toshity1980](https://avatars.githubusercontent.com/u/6498360?v=4)](https://github.com/toshity1980 "toshity1980 (9 commits)")

### Embed Badge

![Health badge](/badges/entap-symfony-googleworkspace-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/entap-symfony-googleworkspace-mailer/health.svg)](https://phpackages.com/packages/entap-symfony-googleworkspace-mailer)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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