PHPackages                             denis-korolev/mattermost-webhook - 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. denis-korolev/mattermost-webhook

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

denis-korolev/mattermost-webhook
================================

Library to send messages with Mattermost Webhook

1.0.2(5y ago)02MITPHPPHP ^7.4

Since Dec 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/denis-korolev/mattermost-webhook)[ Packagist](https://packagist.org/packages/denis-korolev/mattermost-webhook)[ RSS](/packages/denis-korolev-mattermost-webhook/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (9)Versions (4)Used By (0)

[![Test status on master](https://github.com/denis-korolev/mattermost-webhook/workflows/Master%20status/badge.svg)](https://github.com/denis-korolev/mattermost-webhook/workflows/Master%20status/badge.svg)

Client to work with Matermost webhook
-------------------------------------

[](#client-to-work-with-matermost-webhook)

This library will help you send messages to Mattermost by Webhook.

Installation / Usage
--------------------

[](#installation--usage)

Install the latest version via [composer](https://getcomposer.org/):

```
composer require denis-korolev/mattermost-webhook
```

Here is an example of usage.
----------------------------

[](#here-is-an-example-of-usage)

```
        use App\Mattermost\Attachment;
        use App\Mattermost\Message;
        use App\Mattermost\WebhookClient;
        use App\Mattermost\WebhookParams;
        use GuzzleHttp\Client;

        // Any PSR7 Client
        $psr7Client = new Client();
        $webhookParams = new WebhookParams('http://matermost/hooks/2222222222', 'town-square', 'tester');
        $client = new WebhookClient($psr7Client, $webhookParams);

        $attachment = (new Attachment())->setFallback('This is the fallback test for the attachment.')
            ->setSuccessColor()
            ->setPretext('This is optional pretext that shows above the attachment.')
            ->setText('This is the text. **Finaly!** :let_me_in: ');

        // you can add array of attachments
        $message = new Message('Testing Mattermost client', '', [$attachment]);

        $client->send($message);
        // or
        $client->batchSend([$message]);
```

If you need to send huge text, more than 4000 symbols, you can use

```
    $messages = MessageHelper::createMessagesWithTextAttachments('huge text, longer 4000 symbols');
    $client->batchSend(...$messages);
```

It will create Message\[\], which you can send. It will break text by pages and qoute it by ``` So you just send it and it will print at chat one after another.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

3

Last Release

2036d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c7be182b031a590a466a7e993ef5fe82737ea6c95d7210c5f857fa1cdba5ab0?d=identicon)[denis-korolev](/maintainers/denis-korolev)

---

Top Contributors

[![denis-korolev](https://avatars.githubusercontent.com/u/9027091?v=4)](https://github.com/denis-korolev "denis-korolev (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/denis-korolev-mattermost-webhook/health.svg)

```
[![Health](https://phpackages.com/badges/denis-korolev-mattermost-webhook/health.svg)](https://phpackages.com/packages/denis-korolev-mattermost-webhook)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M733](/packages/sylius-sylius)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k14](/packages/tempest-framework)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M415](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k40](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)

PHPackages © 2026

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