Repository navigation
1.2.0
🎉 Features
- Support for Kirby 5 and 6
- Support for PHP 8.5
- New
Author::gravatar()helper to use a Gravatar image as the author icon
use Kirby\Discord\Author;
use Kirby\Discord\Discord;
Discord::submit(
webhook: option('discord.webhook'),
title: 'New comment',
author: [
'name' => $user->name()->value(),
'icon' => Author::gravatar($user->email(), 'mp')
]
);⚠️ Requirements
- PHP 8.3, 8.4 or 8.5. Support for PHP 8.1 and 8.2 has been dropped.
- Kirby 4, 5 or 6
🐛 Bug fixes
DateTimeobjects passed astimestampare now converted to UTC.Field::from()no longer declaresnullas a possible return type, as it always returns a field.
🧹 Housekeeping
- Sends the request with
Remote::request()instead of the magicRemote::post() - Tests now use PHPUnit instead of Pest
- Code style is checked with
getkirby/php-cs - Static analysis runs on Psalm 6 at its strictest level, all run through cpx.
- PHPMD has been dropped.
- CI tests PHP 8.3, 8.4 and 8.5 and uses pinned GitHub Actions
- The release ZIP no longer includes
.editorconfig