shucream0117 / discord-php
Discord client for PHP
v2.0.0
2026-09-05 06:17 UTC
Requires
- php: ^8.0
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-05 06:19:07 UTC
README
Requirement
- PHP >= 8.0
Installation
via composer.
$ composer require shucream0117/discord-php
Usage
$discord = new Discord('http://your-discord-incoming-webhook-url'); // send a message with mention $discord->sendText('this message will be posted'); // send a message with mention $discord->sendText('mention!!', ['12345678']); // send a message with embeds $discord->sendTextWithEmbeds( 'this message will be posted with embeds', [(new Embed())->setTitle('title')] );