PHPackages                             ppeev/glechats - 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. ppeev/glechats

ActiveLibrary

ppeev/glechats
==============

Small library for posting messages to Google Chat, using their webhooks.

v1.0(5y ago)12LGPL-3.0PHPPHP &gt;=5.3.0

Since Oct 7Pushed 5y ago2 watchersCompare

[ Source](https://github.com/peyopeev0206/GleChats)[ Packagist](https://packagist.org/packages/ppeev/glechats)[ Docs](https://github.com/peyopeev0206/GleChats)[ RSS](/packages/ppeev-glechats/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

GleChatS
========

[](#glechats)

---

GleChatS (short from **G**oog**LE** **CHAT** Webhook**S**), is a small library for posting messages to Google Chat, using their webhooks.

Message Types
=============

[](#message-types)

---

There are two message types: simple and card. For the simple one you need to provide only one section with the text you will send.

For the card type there are several params you can add to your message: \* title -&gt; text \* headerTitle -&gt; text \* headerImageUrl -&gt; Image URL \* sections -&gt; provide an array of paragraphs you want to include in the card message. \* button -&gt; array of KVP that contains text and link

Basic use
=========

[](#basic-use)

---

You create a new object by providing the Google Chat Webhook

```
$glechats = new glechats('https://chat.googleapis.com/v1/spaces/AAAA-EgR1hE/messages?....');

```

Once you have an object created, you can start posting messages:

```
$glechats->msg([
    'type'=>'simple',
    'sections' => ['Hello World!']
]);

```

Example
=======

[](#example)

---

Simple message

```
$glechats = new glechats('https://chat.googleapis.com/v1/spaces/AAAA-EgR1hE/messages?....');
$params = [
    'type' => 'simple',
    'sections' => ['Hello World!']
];
$glechats->msg($params);

```

Card Message

```
$glechats = new glechats('https://chat.googleapis.com/v1/spaces/AAAA-EgR1hE/messages?....');
$params = [
    'type' => 'card',
    'title' => 'Hello!',
    'headerTitle' => 'World!',
    'headerImageUrl' => 'https://example/image',
    'sections' => [
        'Several',
        'Line',
        'Message With a button at the end'
    ],
    'button' => [
        'text' => 'Button Text',
        'link' => 'https://example/button/link'
    ]
];

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

2042d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/697d331cadad85a2ba939cb094e1e18affe531d129429dbab12aed573e4693ea?d=identicon)[PPeev](/maintainers/PPeev)

---

Top Contributors

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

---

Tags

webhookweb-hookGoogle-ChatGleChatS

### Embed Badge

![Health badge](/badges/ppeev-glechats/health.svg)

```
[![Health](https://phpackages.com/badges/ppeev-glechats/health.svg)](https://phpackages.com/packages/ppeev-glechats)
```

###  Alternatives

[spatie/laravel-webhook-server

Send webhooks in Laravel apps

1.1k8.8M22](/packages/spatie-laravel-webhook-server)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[kyon147/laravel-shopify

Shopify package for Laravel to aide in app development

473252.9k](/packages/kyon147-laravel-shopify)[nexylan/slack

A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax.

1071.6M1](/packages/nexylan-slack)[symfony/webhook

Eases sending and consuming webhooks

573.0M35](/packages/symfony-webhook)[simonbackx/slack-php-webhook

Post messages to your Slack channels with this easy to use library.

41837.3k2](/packages/simonbackx-slack-php-webhook)

PHPackages © 2026

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