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

ActiveLibrary

ryantxr/discord-webhook
=======================

Post messages to discord.

1.0.6(3y ago)565MITPHPPHP &gt;=7.1.8 || ^8.0

Since Feb 3Pushed 3y agoCompare

[ Source](https://github.com/ryantxr/discord-webhook)[ Packagist](https://packagist.org/packages/ryantxr/discord-webhook)[ RSS](/packages/ryantxr-discord-webhook/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (11)Versions (8)Used By (0)

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

[](#discord-webhook)

This library provides a client for Discord Webhooks. With minimal code, you should be able to send a message to a Discord channel.

If you need to do more, like embeds and formatting, then you can do that too.

Motivation
----------

[](#motivation)

I looked at other libraries and they have been around for a long time. Credit to them for supporting embeds and some neat functionality. However, I didn't see a way to just send a message with a single line of code. All I want to do is send a single text message to a channel.

This library is compatible with service containers.

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

[](#getting-started)

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

Composer require command

`composer require ryantxr/discord-webhook`

Features
--------

[](#features)

- Minimal code to send a message
- Compatible with service containers
- Unit-Testing with PHPUnit
- Easy to use to any framework or even a plain php file

Usage
-----

[](#usage)

```
