PHPackages                             forien/discord-webhooks - 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. forien/discord-webhooks

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

forien/discord-webhooks
=======================

Simple wrapper for building and sending webhooks with Discord's webhook API

0.1.0-beta(8y ago)111BSD-3-ClausePHPPHP ~7.0

Since Apr 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Forien/discord-webhooks)[ Packagist](https://packagist.org/packages/forien/discord-webhooks)[ RSS](/packages/forien-discord-webhooks/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

discord-webhooks
================

[](#discord-webhooks)

Simple wrapper for building and sending webhooks with Discord's webhook API

Allows for both simple small uses (single Webhook object to single Hook (url)) and mass dispatchers for multiple channels or with multiple Webhook object.

Built with simple end-user OOP approach in mind (method chaining for example).

@todo README &amp; documentation

```
// dispatcher manages building and sending webhooks
$dispatch = \Forien\WebhookDispatcher::getInstance();

// to create new Webhook object you can use either:
$webhook = $dispatch->createWebhook();
// or:
$webhook = new \Forien\DiscordHelpers\Webhook();

$webhook->setContent('some basic text');
$embed = $webhook->addEmbed();
$embed->addAuthor(['name' => 'Forien', 'icon_url' => '/*...*/']);
$embed->addField()->setName('name')->setValue('value');
$embed->addField()->setName('name2')->setValue('value2');
$embed->setColor('#cba');

// you can either add Hooks (Discord webhook urls) through either:
$dispatch->addHook('https://...');
$dispatch->setHooks(['https://...', ...])

// you can send attach Webhook object to Dispatcher if you created it independly:
$dispatch->addWebhook($webhook);

// you can send all attached Webhook objects at once (every will be sent to every Hook):
$dispatch->send()

// you can also specify single webhook-hook:
$dispatch->send($webhook, $hook);
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

2956d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68f0a0815d7e75e595bdfbc8a41c4a04d61a37cbed08dff1c29cd782ae6527d8?d=identicon)[Forien](/maintainers/Forien)

---

Top Contributors

[![Forien](https://avatars.githubusercontent.com/u/11304207?v=4)](https://github.com/Forien "Forien (6 commits)")

---

Tags

curlwebhookdiscord

### Embed Badge

![Health badge](/badges/forien-discord-webhooks/health.svg)

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[kriswallsmith/buzz

Lightweight HTTP client

2.0k31.3M443](/packages/kriswallsmith-buzz)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48247.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)[curl/curl

cURL class for PHP

32814.9M195](/packages/curl-curl)[symfony/webhook

Eases sending and consuming webhooks

573.0M35](/packages/symfony-webhook)

PHPackages © 2026

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