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. [HTTP &amp; Networking](/categories/http)
4. /
5. ppeev/glechats

ActiveLibrary[HTTP &amp; Networking](/categories/http)

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 3w ago

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 21% 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

2094d 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

[shopify/shopify-api

Shopify API Library for PHP

4655.4M23](/packages/shopify-shopify-api)[symfony/webhook

Eases sending and consuming webhooks

573.6M77](/packages/symfony-webhook)[renoki-co/laravel-aws-webhooks

Easy webhook handler for Laravel to catch AWS SNS notifications for various services.

73251.1k](/packages/renoki-co-laravel-aws-webhooks)[mvdnbrk/laravel-postmark-webhooks

Handle Postmark webhooks in a Laravel application.

2744.8k](/packages/mvdnbrk-laravel-postmark-webhooks)[skrepr/teams-connector

A simple PHP package for sending messages to Microsoft Teams

2211.6k1](/packages/skrepr-teams-connector)[akhan619/laravel-ses-tracking

A Laravel artisan based package to create the AWS (SES + SNS) infrastructure to receive email event notifications with Http/Https endpoint.

1410.0k](/packages/akhan619-laravel-ses-tracking)

PHPackages © 2026

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