- PHP >= 7.4.x
via composer.
$ composer require shucream0117/discord-php:1.0
$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']);