PHPackages                             a2media/discord-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. a2media/discord-webhook

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

a2media/discord-webhook
=======================

php discord webhook

v1.0.0(4y ago)04[1 issues](https://github.com/a2media-dev/discord-webhook/issues)WTFPLPHPPHP &gt;=5.3.0

Since Oct 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/a2media-dev/discord-webhook)[ Packagist](https://packagist.org/packages/a2media/discord-webhook)[ Docs](https://github.com/a2media-dev/discord-webhook)[ RSS](/packages/a2media-discord-webhook/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependenciesVersions (2)Used By (0)

DiscordWebhook
==============

[](#discordwebhook)

Usage
-----

[](#usage)

```
use A2Media\DiscordWebhook\Webhook;
use A2Media\DiscordWebhook\WebhookEmbed;
use A2Media\DiscordWebhook\WebhookField;
use A2Media\DiscordWebhook\WebhookMessage;

try {
    $webhook = new Webhook('https://discord.com/api/webhooks/yourchanelid/longtoken');
    $args = array('A' => 'Value A','B' => 'Value B',);
    $message = new WebhookMessage(array('content' => '', 'username' => 'Sender','url' => ''));
    $emded = new WebhookEmbed(array('title' => 'Embed', 'description' => '', 'author' => array('name' => 'Author', 'url' => '')));
    foreach ($args as $key => $value) {
        switch ($key) {
            case 'A':
                $emded->addField(new WebhookField(array('name' => 'Field A', 'value' => $value)));
                break;
            case 'B':
                $emded->addField(new WebhookField(array('name' => 'Field B', 'value' => $value)));
                break;
        }
    }
    if (count($emded->getFields()) > 0 && $message->addEmbed($emded))
        $send = $webhook->sendMessage($message);

} catch (\Exception $exception) {
    error_log("{$exception->getTraceAsString()} at {$exception->getFile()} on line {$exception->getLine()}");
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

1686d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/363c595a98dede86638753e5ac1aa30d117e32d6972e2f8181463203e5641477?d=identicon)[a2media.id](/maintainers/a2media.id)

---

Top Contributors

[![a2media-dev](https://avatars.githubusercontent.com/u/89861455?v=4)](https://github.com/a2media-dev "a2media-dev (1 commits)")

---

Tags

webhookdiscord

### Embed Badge

![Health badge](/badges/a2media-discord-webhook/health.svg)

```
[![Health](https://phpackages.com/badges/a2media-discord-webhook/health.svg)](https://phpackages.com/packages/a2media-discord-webhook)
```

###  Alternatives

[atakde/discord-webhook-php

discord webhook php

186.5k](/packages/atakde-discord-webhook-php)[dintel/php-github-webhook

Simple class for handling GitHub webhook calls

5115.5k](/packages/dintel-php-github-webhook)[ankurk91/laravel-ses-webhooks

Handle AWS SES webhooks in Laravel php framework

2534.2k](/packages/ankurk91-laravel-ses-webhooks)[degordian/yii2-webhooks

Yii2 extension for webhooks

117.1k](/packages/degordian-yii2-webhooks)[shipsaas/laravel-inbox-process

Inbox pattern process implementation for your Laravel Applications

132.1k](/packages/shipsaas-laravel-inbox-process)

PHPackages © 2026

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