2017 © Pedro Peláez
 

library discord-webhooks

A simple Discord webhook client library.

image

nopjmp/discord-webhooks

A simple Discord webhook client library.

  • Friday, April 27, 2018
  • by nopjmp
  • Repository
  • 4 Watchers
  • 17 Stars
  • 2,372 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 11 Forks
  • 2 Open issues
  • 6 Versions
  • 12 % Grown

The README.md

discord-webhooks

Discord webhooks is a simple client for Discord's webhook API., (*1)

Motivation

While this is probably "yet another" library for Discord's webhook system, I wanted to make my own. Discord doesn't support BitBucket's webhook system and the Slack compatible endpoint doesn't send a message., (*2)

Getting Started

You can either copy the PHP file directly into your project or preferable just use composer., (*3)

Composer require command

composer require nopjmp/discord-webhooks, (*4)

Usage

It is fairly easy to use. I'll throw in an example., (*5)

use \DiscordWebhooks\Client;
use \DiscordWebhooks\Embed;

$webhook = new Client('DISCORD_WEBHOOK_URL');
$embed = new Embed();

$embed->description('This is an embed');

$webhook->username('Bot')->message('Hello, Human!')->embed($embed)->send();

Example of sending files:, (*6)

$webhook->addFile("/path/to/file")
        ->addStringFile("Hello World!", "hello_world.txt")
        ->send();

License

The project is MIT licensed. To read the full license, open LICENSE.md., (*7)

Contributing

Pull requests and issues are open!, (*8)

The Versions

27/04 2018

dev-master

9999999-dev

A simple Discord webhook client library.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.4

 

by Avatar nopjmp
by Kyle Thompson
by Kayla Thompson

27/04 2018

0.3.1

0.3.1.0

A simple Discord webhook client library.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.4

 

by Kayla Thompson

27/04 2018

0.3

0.3.0.0

A simple Discord webhook client library.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.4

 

by Kayla Thompson

27/06 2017

0.2.2

0.2.2.0

A simple Discord webhook client library.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.4

 

by Kyle Thompson

11/01 2017

0.2.1

0.2.1.0

A simple Discord webhook client library.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.4

 

by Avatar nopjmp

11/01 2017

0.2

0.2.0.0

A simple Discord webhook client library.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.4

 

by Avatar nopjmp