PHPackages                             labymod/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. labymod/discord-webhook

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

labymod/discord-webhook
=======================

A lightweight library for Discord™ Webhooks

3.1.3(4y ago)1120.0k↓50%5[2 issues](https://github.com/LabyMod/discord-webhook/issues)1GPL-3.0PHPPHP ^8.1

Since Nov 26Pushed 4y ago3 watchersCompare

[ Source](https://github.com/LabyMod/discord-webhook)[ Packagist](https://packagist.org/packages/labymod/discord-webhook)[ RSS](/packages/labymod-discord-webhook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (25)Used By (1)

Discord Webhook
===============

[](#discord-webhook)

[![Latest Stable Version](https://camo.githubusercontent.com/3b76f30ad61b27c9faa63b2cfbe9ee1e01e38d13824e70f87584248b630c52bc/68747470733a2f2f706f7365722e707567782e6f72672f6c6162796d6f642f646973636f72642d776562686f6f6b2f76)](https://packagist.org/packages/labymod/discord-webhook)[![Latest Unstable Version](https://camo.githubusercontent.com/dfefb58c26c93f0d42a9a15096cd3d72b1991be01185dcff3873be194acbd95d/68747470733a2f2f706f7365722e707567782e6f72672f6c6162796d6f642f646973636f72642d776562686f6f6b2f762f756e737461626c65)](https://packagist.org/packages/labymod/discord-webhook)[![Total Downloads](https://camo.githubusercontent.com/c9a369451a3f4269b5620d3c37f85e8375ceaf09dc250a48529df2a3981390f6/68747470733a2f2f706f7365722e707567782e6f72672f6c6162796d6f642f646973636f72642d776562686f6f6b2f646f776e6c6f616473)](https://packagist.org/packages/labymod/discord-webhook)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7811004d2089ada236ed8aa399231170122dfea240e36b6d3d7ddc383a2440ac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4c6162794d6f642f646973636f72642d776562686f6f6b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/LabyMod/discord-webhook/?branch=master)[![License](https://camo.githubusercontent.com/575b4a37c423ea8e0954314c1437f9a958f0a7bb6280db859f542a628c49f837/68747470733a2f2f706f7365722e707567782e6f72672f6c6162796d6f642f646973636f72642d776562686f6f6b2f6c6963656e7365)](https://packagist.org/packages/labymod/discord-webhook)

Send Discord messages directly from your PHP application. Even with embeds &amp; files!

Versions &amp; Compatibility
----------------------------

[](#versions--compatibility)

ReleaseSupported PHP VersionsSupported Symfony VersionsRelease DateMaintainedBranch3.x`^8.1``^4.4.35`, `^5.3.12`, `^6.0`23.01.2022Yesmaster2.x`^8.0``^4.4.35`, `^5.3.12`, `^6.0`23.01.2022Yes2.x1.x`^7.3`, `^8.0``^3.0`, `^4.0`, `^5.0`05.01.2020No1.xInstallation
------------

[](#installation)

**Composer installation**

```
composer require labymod/discord-webhook
```

Documentation
-------------

[](#documentation)

Hop into the wonderful world of webhooks with just those few lines:

```
use DiscordWebhook\Webhook;

$wh = new Webhook('https://my.webhook/url');
$wh
    ->setMessage('Hello world!')
    ->send();
```

### ✨ NEW: Simple Webhooks

[](#-new-simple-webhooks)

> **First** (recommended but optional): Define the `DWH_DEFAULT_URL` as environment variable

```
use DiscordWebhook\SimpleWebhook;

// with environment variable defined:
SimpleWebhook::sendMessage('My simple message.');

// without environment variable defined (or to override the already set env var):
SimpleWebhook::sendMessage('My simple message.', 'https://discord.com/my/webhook/url');
```

For further documentation have a look here:

- [Basics](docs/01_Basics.md)
- [Sending Files](docs/02_SendingFiles.md)
- [Embeds](docs/03_Embeds.md)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~0 days

Total

24

Last Release

1574d ago

Major Versions

2.0.2 → 3.0.12022-01-23

2.1.0 → 3.1.02022-01-24

2.1.1 → 3.1.12022-01-24

2.1.2 → 3.1.22022-01-24

2.1.3 → 3.1.32022-01-25

PHP version history (5 changes)0.1.0PHP &gt;=7.0

1.0.0PHP ^7.2

1.0.4PHP ^7.3 || ^8.0

2.0.0PHP ^8.0

3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/84866bc2e6ab5b3898a412d8880329378f610da56dc96cc193ce6deee129853a?d=identicon)[Scrummer](/maintainers/Scrummer)

---

Top Contributors

[![scrummer](https://avatars.githubusercontent.com/u/15173170?v=4)](https://github.com/scrummer "scrummer (60 commits)")

---

Tags

discordphpwebhook

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)

PHPackages © 2026

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