- TelegramHandler - Monolog Handler to push notification to Telegram.
- MemcachedBufferHandler - Monolog Handler that allows to reduce message rate.
Add the following to your composer.json:
"require": {
"privatedev/monolog-handlers": "dev-master",
}
...
"repositories": [
{
"type": "vcs",
"url": "https://github.com/PrivateDev/monolog-handlers.git"
}
],
Requires TelegramBot's ID and Telegram chat/channel id or username
- Create a bot and get it's ID
(example: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11)
- Create a channel/chat and get it's id or username. Add members to your chat
- Pass both params to TelegramHandler constructor.
Requires Slack webhook, channel and username
- Make a webhook
(example: https://hooks.slack.com/services/XXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX)
- Create a channel and get it's username. Add members to your chat
- Pass params to SlackHandler constructor.
Requires Memcached driver. Pass it and your Handler, where you want to reduce message rate, to MemcachedBufferHandler controller.
To pass more than one handler you may use Monolog's GroupHandler to group them.