PHPackages                             gboquizosanchez/google-chat-channel - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. gboquizosanchez/google-chat-channel

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

gboquizosanchez/google-chat-channel
===================================

Laravel package to send logs to Google Chat

1.1.0(10mo ago)0178[1 issues](https://github.com/gboquizosanchez/google-chat-channel/issues)MITPHPPHP ^8.3|^8.4

Since Sep 4Pushed 2mo agoCompare

[ Source](https://github.com/gboquizosanchez/google-chat-channel)[ Packagist](https://packagist.org/packages/gboquizosanchez/google-chat-channel)[ Docs](https://github.com/gboquizosanchez)[ RSS](/packages/gboquizosanchez-google-chat-channel/feed)WikiDiscussions 1.x Synced today

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

[![Google Chat Channel](https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f4ac.svg)](https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f4ac.svg)`gboquizosanchez/google-chat-channel`
=====================================

[](#gboquizosanchezgoogle-chat-channel)

**Laravel logging channel for Google Chat**

[![Latest Stable Version](https://camo.githubusercontent.com/dd83b72450b2996b7cd09908d10b20c862365a37c45d6241416ae426bbc9f344/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67626f7175697a6f73616e6368657a2f676f6f676c652d636861742d6368616e6e656c2e737667)](https://packagist.org/packages/gboquizosanchez/google-chat-channel)[![Total Downloads](https://camo.githubusercontent.com/50dbd1302cec5cdb570a1db571c862373260ba2a10c1d25371f5b538ae662f63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67626f7175697a6f73616e6368657a2f676f6f676c652d636861742d6368616e6e656c2e737667)](https://packagist.org/packages/gboquizosanchez/google-chat-channel)[![PHP](https://camo.githubusercontent.com/31a87e1f22b529af58a2615dde6bcd4902061209db5e98adc4b5dff3e99f5f02/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e332d3737374242343f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/gboquizosanchez/google-chat-channel)[![Laravel](https://camo.githubusercontent.com/cf3203afc4f003dc5656e6a684f11a5786224fdb31ec4c4848e807068c048bc2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d313125323025374325323031322d4646324432303f6c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/gboquizosanchez/google-chat-channel)[![License: MIT](https://camo.githubusercontent.com/6fd529fdc57adf8eb89582bee619d571fd9037b380418c50bb57e9c91598e03b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d3232433535452e737667)](LICENSE.md)

---

*Get instant alerts in Google Chat when your Laravel app logs an error. No setup beyond a webhook URL.*

---

Overview
--------

[](#overview)

A lightweight Laravel logging channel that sends log entries directly to a Google Chat space via webhooks. Messages are formatted as rich cards with emojis based on log level — so your team can triage errors at a glance without leaving Chat.

---

✨ Features
----------

[](#-features)

- 🚀 **Real-time delivery** — Log entries sent instantly to your Google Chat space
- 📱 **Rich formatting** — Cards with emojis and severity based on log level
- ⚙️ **Env-based config** — No config file to publish, just `.env` variables
- 🔧 **Context &amp; exceptions** — Optionally include extra context and exception details
- 📊 **Smart retries** — Built-in error handling for webhook failures
- 🔁 **Queue support** — Optionally queue log dispatch to avoid blocking requests

---

📦 Installation
--------------

[](#-installation)

```
composer require gboquizosanchez/google-chat-channel
```

---

⚙️ Configuration
----------------

[](#️-configuration)

Add the channel to your `config/logging.php`:

```
'channels' => [
    'google-chat' => [
        'driver' => 'custom',
        'via'    => \Boquizo\GoogleChatChannel\GoogleChatLogger::class,
    ],

    'stack' => [
        'driver'   => 'stack',
        'channels' => ['single', 'google-chat'],
    ],
],
```

Then set your webhook URL in `.env`:

```
GOOGLE_CHAT_WEBHOOK_URL=https://chat.googleapis.com/v1/spaces/XXX/messages?key=YYY&token=ZZZ
```

> To get a webhook URL, open a Google Chat space → **Manage webhooks** → **Add webhook**.

### Available environment variables

[](#available-environment-variables)

VariableDefaultDescription`GOOGLE_CHAT_WEBHOOK_URL`—**Required.** Google Chat incoming webhook URL`GOOGLE_CHAT_LOG_LEVEL``error`Minimum log level to forward (`debug`, `info`, `warning`, `error`, ...)`GOOGLE_CHAT_IGNORE_CONTEXTS``true`Exclude context data from the message`GOOGLE_CHAT_IGNORE_EXCEPTIONS``true`Exclude exception details from the message`GOOGLE_CHAT_QUEUED``false`Queue log dispatch instead of sending synchronously---

🚀 Usage
-------

[](#-usage)

Once configured, use Laravel's standard logging — no changes needed in your code:

```
// Sent to Google Chat (at or above your configured level)
Log::error('Payment failed', ['order_id' => 1234]);
Log::critical('Database connection lost');

// Not sent if GOOGLE_CHAT_LOG_LEVEL=error
Log::info('User logged in');
```

Each message arrives in Chat as a formatted card showing the level, message, and optionally context or exception details.

---

Contributing
------------

[](#contributing)

Contributions are welcome!

- 🐛 **Report bugs** via [GitHub Issues](https://github.com/gboquizosanchez/google-chat-channel/issues/new)
- 💡 **Suggest features** or improvements
- 🔧 **Submit pull requests** with fixes or enhancements

---

Credits
-------

[](#credits)

- **Author**: [Germán Boquizo Sánchez](mailto:germanboquizosanchez@gmail.com)
- **Contributors**: [View all contributors](../../contributors)

---

📄 License
---------

[](#-license)

This package is open-source software licensed under the [MIT License](LICENSE.md).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance71

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

89d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20032391?v=4)[Germán Boquizo Sánchez](/maintainers/gboquizosanchez)[@gboquizosanchez](https://github.com/gboquizosanchez)

---

Top Contributors

[![gboquizosanchez](https://avatars.githubusercontent.com/u/20032391?v=4)](https://github.com/gboquizosanchez "gboquizosanchez (7 commits)")

---

Tags

channelschatgooglelogginglaravelloggingGoogle-Chat

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gboquizosanchez-google-chat-channel/health.svg)

```
[![Health](https://phpackages.com/badges/gboquizosanchez-google-chat-channel/health.svg)](https://phpackages.com/packages/gboquizosanchez-google-chat-channel)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[illuminate/log

The Illuminate Log package.

6225.3M625](/packages/illuminate-log)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)

PHPackages © 2026

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