Download the PHP package lemonmind/pimcore-message-bundle without Composer
On this page you can find all versions of the php package lemonmind/pimcore-message-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lemonmind/pimcore-message-bundle
More information about lemonmind/pimcore-message-bundle
Files in lemonmind/pimcore-message-bundle
Package pimcore-message-bundle
Short Description Pimcore Message Bundle - send notifications to Discord, Google Chat, Slack, Telegram, E-mail or SMS from Pimcore admin panel
License GPL-3.0-or-later
Informations about the package pimcore-message-bundle
Send notifications to Discord, Google Chat, Slack and more from Pimcore
It's Pimcore Bundle to send notifications to Discord, Google Chat, Slack, Telegram, Email or SMS from admin panel inside Pimcore
Installation
First of all you need to add notifier to your config/config.yaml file otherwise bundle won't install properly
Then you can install and enable the bundle
And finally in your config/config.yaml file you need to add
where:
YOUR_CLASS:
is your class from which notifications will be sentfields_to_send
is your class fields separated with coma without spaceemail_to_send
is e-mail you want to send notification tosms_to
is the phone number to which you want to send the notification
It is possible to add multiple classes from which you can send notifications
You need to specify which chatters should be available using allowed chatters
option
Example
After correct installation button for sending the notification should be visible only in your class that you defined earlier
When you click at the button a modal should pop up where you can select where you want to send notification and add additional information to the message.
Asynchronous messages
MessageBundle can send asynchronous messages via Symfony Messenger Component. To do that in your config/config.yaml file you need to add lines below
Also in your .env file you need to add
where:
MESSENGER_TRANSPORT_DSN
is your messenger transport dsn. It can be redis, RabbitMQ or database
Finally, you need to start consuming messages. To do this in your php container, run this command
It is not recommended to keep this process for a long time. It's better to use supervisord.
Discord
To integrate this bundle with Discord you need to add dsn in your .env file
where:
TOKEN
is your secure token of the webhook (returned for Incoming Webhooks)ID
is the id of the webhook
Sample message
Google Chat
To integrate this bundle with Google Chat you need to add dsn in your .env file
where:
ACCESS_KEY
is your Google Chat webhook access keyACCESS_TOKEN
is your Google Chat webhook access tokenSPACE
is the Google Chat spaceTHREAD_KEY
is the Google Chat message thread to group messages into a single thread (optional)
Sample message
Slack
To integrate this bundle with Slack you need to add dsn in your .env file
where:
TOKEN
is your Bot User OAuth Access Token (they begin with xoxb-)CHANNEL
is a channel, private group, or IM channel to send message to, it can be an encoded ID, or a name.
Sample message
Telegram
To integrate this bundle with Telegram you need to add dsn in your .env file
where:
TOKEN
is your Telegram tokenCHAT_ID
is your Telegram group chat id (starts with -)
You need to contact BotFather on Telegram to start creating your bot. Then add the bot to the group where you want it to send messages
Sample message
To integrate this package with e-mail, you need to prepare as with regular Pimcore e-mail.
Sample message
SMSAPI
To integrate this package with SMSAPI, you need to add dsn in your .env file
where:
TOKEN
is your API Token (OAuth)FROM
is the sender nameFAST
setting this parameter to 1 (default 0) will result in sending message with the highest priority which ensures the quickest possible time of delivery. Attention! Fast messages cost more than normal messages.TEST
setting this parameter to 1 (default 0) will result in sending message in test mode (message is validated, but not sent).
You can see your account info at https://ssl.smsapi.pl/
All versions of pimcore-message-bundle with dependencies
symfony/notifier Version ^6.2.8
symfony/slack-notifier Version ^6.2.8
symfony/discord-notifier Version ^6.2.8
symfony/smsapi-notifier Version ^6.2.7
symfony/google-chat-notifier Version ^6.2.8
symfony/telegram-notifier Version ^6.2.8
pimcore/admin-ui-classic-bundle Version ^1.0