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 6d 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 22% 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

1826d 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

[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[walle89/swedbank-json

Unofficial API client for the Swedbank's and Sparbanken's mobile apps in Sweden.

752.5k](/packages/walle89-swedbank-json)[lasserafn/laravel-economic

Economic REST wrapper for Laravel

1118.5k](/packages/lasserafn-laravel-economic)[sysmoh/nextcloud-api-wrapper

A simple wrapper around nextcloud user provisioning api

177.3k2](/packages/sysmoh-nextcloud-api-wrapper)[lasserafn/php-dinero

Dinero REST wrapper for PHP

115.2k](/packages/lasserafn-php-dinero)

PHPackages © 2026

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