Status
Webhook-Discord
An easy code to send messages on a discord text channel with webhook.
Don't forget to check the latest version of Webhook-Discord here.
Webhook-Discord Version | Support |
---|---|
1.0 |
|
1.1 |
|
1.2 |
|
1.3 |
|
Summary
Installation
Installing Webhook-Discord
Webhook-Discord is installed using Composer.
- Run
composer require kizafox/webhook-discord
. This will install the latest release.
Basic Example
<?php
require_once './vendor/autoload.php';
/* You can also decide to leave the AVATAR-URL parameter empty if you don't have one! */
$webhook = new \Webhook\Webhook('YOUR-WEBHOOK-URL', 'Bot Name', 'This is a test', 'AVATAR-URL');
$webhook->send();
Author
License
Distributed under the MIT License. See License for more information.