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

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

nopjmp/discord-webhooks
=======================

A simple Discord webhook client library.

0.4.2(3mo ago)55105.8k↑90.9%23[3 issues](https://github.com/nopjmp/discord-webhooks/issues)MITPHPPHP &gt;=7.4CI failing

Since Jan 11Pushed 3mo ago6 watchersCompare

[ Source](https://github.com/nopjmp/discord-webhooks)[ Packagist](https://packagist.org/packages/nopjmp/discord-webhooks)[ RSS](/packages/nopjmp-discord-webhooks/feed)WikiDiscussions master Synced 3w ago

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

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

[](#discord-webhooks)

Discord webhooks is a simple client for Discord's webhook API.

### Motivation

[](#motivation)

While this is probably "yet another" library for Discord's webhook system, I wanted to make my own. Discord doesn't support BitBucket's webhook system and the Slack compatible endpoint doesn't send a message.

Getting Started
---------------

[](#getting-started)

You can either copy the PHP file directly into your project or *preferable* just use composer.

#### Composer require command

[](#composer-require-command)

`composer require nopjmp/discord-webhooks`

Usage
-----

[](#usage)

It is fairly easy to use. I'll throw in an example.

```
use \DiscordWebhooks\Client;
use \DiscordWebhooks\Embed;

$webhook = new Client('DISCORD_WEBHOOK_URL');
$embed = new Embed();

$embed->description('This is an embed');

$webhook->username('Bot')->message('Hello, Human!')->embed($embed)->send();
```

Example of sending files:

```
$webhook->addFile("/path/to/file")
        ->addStringFile("Hello World!", "hello_world.txt")
        ->send();

```

License
-------

[](#license)

The project is MIT licensed. To read the full license, open [LICENSE.md](LICENSE.md).

Contributing
------------

[](#contributing)

Pull requests and issues are open!

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance77

Regular maintenance activity

Popularity46

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.6% 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 ~476 days

Recently: every ~716 days

Total

8

Last Release

117d ago

PHP version history (2 changes)0.2PHP &gt;=5.4

0.4.2PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/bce4b7564b7757c3ed0c8adf45d23edfc32572615d3cbdfa5e49f8d2a05a1343?d=identicon)[nopjmp](/maintainers/nopjmp)

---

Top Contributors

[![nopjmp](https://avatars.githubusercontent.com/u/5185561?v=4)](https://github.com/nopjmp "nopjmp (16 commits)")[![JiFish](https://avatars.githubusercontent.com/u/1314002?v=4)](https://github.com/JiFish "JiFish (2 commits)")[![tfevens](https://avatars.githubusercontent.com/u/701763?v=4)](https://github.com/tfevens "tfevens (2 commits)")[![bennetgallein](https://avatars.githubusercontent.com/u/15325891?v=4)](https://github.com/bennetgallein "bennetgallein (1 commits)")[![PF94](https://avatars.githubusercontent.com/u/45898787?v=4)](https://github.com/PF94 "PF94 (1 commits)")[![richard4339](https://avatars.githubusercontent.com/u/100804?v=4)](https://github.com/richard4339 "richard4339 (1 commits)")

---

Tags

composercomposer-packagediscorddiscord-webhooksphpphp-librarywebhooks

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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