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

ActiveLibrary[API Development](/categories/api)

ccaglayan/discord-webhooks-php
==============================

A simple Discord webhook client library.

0.1.0(7y ago)21.0kUnlicensePHPPHP &gt;=5.4

Since Dec 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ccaglayan/discord-webhooks-php)[ Packagist](https://packagist.org/packages/ccaglayan/discord-webhooks-php)[ Docs](https://github.com/ccaglayan/discord-webhooks-php)[ RSS](/packages/ccaglayan-discord-webhooks-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

DiscordWebhooksPHP
==================

[](#discordwebhooksphp)

[![Codacy Badge](https://camo.githubusercontent.com/0465ceb5b0ad0fa602075fa05098d0cbdec7e057d09239cea013e643783f16e7/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3336383133643936373065393465383439346634643365656634386266313231)](https://app.codacy.com/app/ccaglayan/discord-webhooks-php?utm_source=github.com&utm_medium=referral&utm_content=ccaglayan/discord-webhooks-php&utm_campaign=Badge_Grade_Dashboard)

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

#### Composer require command

[](#composer-require-command)

`composer require ccaglayan/discord-webhooks-php`

Usage
-----

[](#usage)

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

```
use DiscordWebhooksPHP\Client;

$client = new Client('DISCORD_WEBHOOK_URL');
try{
    $embedData = array(
        "author" => array(
            "name" =>"NAME",
            "url" => "WEB_URL",
            "icon_url" => "ICON_URL"
        ),
        "title" => "Title",
        "url" => "WEB_URL",
        "description" => "Text message. You can use Markdown here. *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](https://google.com) `code`",
        "color" => 15258703,
        "fields" => array(
            array(
                "name" => "Text",
                "value" => "More text",
                "inline" => true
            ),
            array(
                "name" => "Text",
                "value" => "More text",
                "inline" => true
            ),
            array(
                "name" => "Even more text",
                "value" => "Yup",
                "inline" => true
            ),
            array(
                "name" => "Use `\"inline\" => true` parameter, if you want to display fields in the same line.",
                "value" => "okay..."
            ),
            array(
                "name" => "Thanks!",
                "value" => "You're welcome :wink:"
            )
        ),
        "thumbnail" => array(
            "url" => "THUMBNAIL_URL"
        ),
        "image" => array(
            "url" => "IMAGE_URL"
        ),
          "footer" => array(
            "text" => "Woah! So cool! :smirk:",
            "icon_url" => "ICON_URL"
        )
    );

    $client->setAvatar('AVATAR_URL'); // Optional
    $client->setUsername('BOT_NAME'); // Optional
    $client->setMessage('MESSAGE');
    $client->setEmbedData($embedData); //Optional
    $client->send();
}catch(\DiscordWebhooksPHP\DiscordException $e) {
    echo 'Error:'.$e->getMessage().'--'.$e->getCode();
    exit;
}
```

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

[](#contributing)

Pull requests and issues are open!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

2706d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c1ce22cbe0518b684030c006a33bd5839f881c45019ee1e050e3556bddf9cbc?d=identicon)[ccaglayan](/maintainers/ccaglayan)

---

Top Contributors

[![ccaglayan](https://avatars.githubusercontent.com/u/108281?v=4)](https://github.com/ccaglayan "ccaglayan (5 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

discorddiscord-webhook-apidiscord-webhook-notificationsdiscord-webhooksphpwebhookwebhooksphplibrarywebhooksdiscorddiscordapp

### Embed Badge

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

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

###  Alternatives

[maxbeckers/amazon-alexa-php

Php library for amazon echo (alexa) skill development.

11554.0k2](/packages/maxbeckers-amazon-alexa-php)[ontraport/sdk-php

ONTRAPORT PHP Library

19360.5k2](/packages/ontraport-sdk-php)

PHPackages © 2026

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