PHPackages                             noynac/phpcord-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. [API Development](/categories/api)
4. /
5. noynac/phpcord-webhooks

ActiveLibrary[API Development](/categories/api)

noynac/phpcord-webhooks
=======================

A PHP wrapper for using Discord's webhook API

v1.0.0(5y ago)17MITPHPPHP &gt;=7.0.0

Since May 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Sooshiii/phpcord-webhooks)[ Packagist](https://packagist.org/packages/noynac/phpcord-webhooks)[ Docs](https://github.com/Sooshiii/phpcord-webhooks)[ RSS](/packages/noynac-phpcord-webhooks/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

PHPCord Webhooks
================

[](#phpcord-webhooks)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This is a small WIP library for using discord webhooks.

Install
-------

[](#install)

`composer require noynac/phpcord-webhooks`

Usage
-----

[](#usage)

```
require_once "vendor/autoload.php";

use DiscordWebhook\Message;
use DiscordWebhook\Embed;

$webhook = 'YOUR-WEBHOOK-URL-HERE';

$message = new Message();
$message->setWebhook($webhook)
    ->setMessage("some message")
    ->setUsername("username here");

$newEmbed = new Embed();
$newEmbed->setColor('1000')
	->setTitle('Some title')
	->setURL('https://github.com/Sooshiii/phpcord-webhooks')
	->setAuthor('Some name', 'https://i.imgur.com/EJOjIMC.jpg')
	->setDescription('Some description here')
	->setThumbnail('https://i.imgur.com/EJOjIMC.jpg')
	->addField('Inline field title', 'Some value here', true)
	->setImage('https://i.imgur.com/EJOjIMC.jpg')
	->setTimestamp()
	->setFooter('Some footer text here', 'https://i.imgur.com/EJOjIMC.jpg');

$message->addEmbed($newEmbed);

$message->send();
```

Testing
-------

[](#testing)

```
$ phpunit
```

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/Sooshiii/phpcord-webhooks/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Gavin](https://github.com/Sooshiii)
- [All Contributors](https://github.com/Sooshiii/phpcord-webhooks/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1875d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19636092?v=4)[Gavin](/maintainers/noynac)[@noynac](https://github.com/noynac)

---

Top Contributors

[![Sooshiii](https://avatars.githubusercontent.com/u/54426514?v=4)](https://github.com/Sooshiii "Sooshiii (9 commits)")

---

Tags

apiwrapperwebhookdiscord

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/noynac-phpcord-webhooks/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[bushlanov-dev/max-bot-api-client-php

Max Bot API Client library

486.3k](/packages/bushlanov-dev-max-bot-api-client-php)[webit/w-firma-api

wFirma.pl API

1822.0k](/packages/webit-w-firma-api)

PHPackages © 2026

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