- FEATURE:
DiscordWebhook\SimpleWebhook
- Create simple text-based webhooks without much boilerplate code
- Configure URL:
- Set the
DWH_DEFAULT_URL
environment variable - or pass the URL directly as parameter of the
SimpleWebhook::sendMessage()
method
- Set the
- FEATURE:
DiscordWebhook\Webhook
's constructor now accepts a string (and still ofc. an array for multiple destinations)
- FEATURE: Enums
EmbedColor
was replaced by an enum of same name
- BC BREAKS
- Dropped compatibility/suppport for PHP 8.0
Note: For the complete 2.x changelog see 2.x/CHANGELOG.md
- FEATURE: PHP 8.1 ready
- Added proper type annotations
- Removed php annotations
- BC BREAKS
- Drop support for PHP 7.4
- DEPRECATIONS
- All
Embed::COLOR_*
constants (will be removed in 3.0); use\DicordWebhook\EmbedColor::XY
now.
- All
- Changed
guzzlehttp/guzzle
version bound to be backwards compatible.
- BUG: Fixed wrong usage of
DateTime
generation. NowDateTimeInterface
is used.
- PHP 8.0 ready
- BUG/Improvement: Allow usage of Symfony versions ^3.0|^4.0|^5.0
- BUG: Fixed version binding of Symfony packages
- BUG: Use feature releases of guzzlehttp/guzzle
- FEATURE: Final embed support
- HTTP client implementation
- Production-ready
- FEATURE: Embed support
DiscordWebhook\Webhook::addEmbed(Embed $embed)
DiscordWebhook\Embed
DiscordWebhook\Embed\Author
DiscordWebhook\Embed\Field
DiscordWebhook\Embed\Footer
DiscordWebhook\Embed\Image
DiscordWebhook\Embed\Provider
DiscordWebhook\Embed\Thumbnail
DiscordWebhook\Embed\Video
- FEATURE: Multi-domain support
- Documentation in
docs/
- This changelog
- FEATURE: Basic webhook functionality
DiscordWebhook\Webhook::setUsername(string $username): Webhook
DiscordWebhook\Webhook::setAvatar(string $url): Webhook
DiscordWebhook\Webhook::setMessage(string $message): Webhook
DiscordWebhook\Webhook::setFile(SplFileInfo $file): Webhook
DiscordWebhook\Webhook::setTts(bool $tts): Webhook
DiscordWebhook\Webhook::send(): void
- FEATURE: PHP 7.0 requirement
- type hinting
- return types
- strict_type declaration
- FEATURE: Guzzle HTTP-Client implementation