Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Symfony Bluesky Notifier Bridge

License

Notifications You must be signed in to change notification settings

symfony/bluesky-notifier

Bluesky Notifier

Provides Bluesky integration for Symfony Notifier.

DSN example

BLUESKY_DSN=bluesky://nyholm.bsky.social:[email protected]

Adding Options to a Message

Use a BlueskyOptions object to add options to the message:

use Symfony\Component\Notifier\Bridge\Bluesky\BlueskyOptions;
use Symfony\Component\Notifier\Message\ChatMessage;

$message = new ChatMessage('My message');

// Add website preview card to the message
$options = (new BlueskyOptions())
    ->attachCard('https://example.com', new File('image.jpg'))
    // You can also add media to the message
    //->attachMedia(new File($command->fileName), 'description')
    ;

// Add the custom options to the Bluesky message and send the message
$message->options($options);

$chatter->send($message);

Resources

Packages

No packages published

Contributors 11

Languages