Skip to content
Build and send messages via supported senders. Core for notifications project
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
composer.json

README.md

Send message via supported channels

Build mattermost message:

$message = (new MessageBuilder())
    ->build('mattermost', [
        'username' => 'MyUserName',
        'channel' => '@rcpt',
        'text' => 'message text'
    ]);

Build sender for mattermost message:

$sender = (new MessageSenderBuilder())
    ->build('mattermost', [
        'endpoint' => 'WEBHOOK-URI'
    ]);

Send message:

$sender->send($message);

Supported types:

You can’t perform that action at this time.