monotify / monotify
Send notification to files, email, databases, various alert services
dev-master / 0.1.x-dev
2016-12-18 09:24 UTC
Requires
- php: >=5.4.0
- symfony/process: ~2.3|~3.0
Requires (Dev)
- hipchat/hipchat-php: 1.2.*
- lygav/php-slackbot: ^0.0.3
- mmoreram/php-formatter: ^1.1
- phpunit/phpunit: ~4.5
- ruflin/elastica: >=0.90 <3.0
- swiftmailer/swiftmailer: ^5.4
- symfony/process: ~2.3|~3.0
Suggests
- hipchat/hipchat-php: Send notification to hipchat
- lygav/php-slackbot: Send notification to slack
- ruflin/elastica: Send notification to elasticsearch
- swiftmailer/swiftmailer: Send email notification
This package is auto-updated.
Last update: 2024-12-13 03:07:05 UTC
README
Send notification to files, email, databases, various alert services
<?php use Monotify\Handler\SlackHandler; use Monotify\Handler\HipchatHandler; use Monotify\Notification\Notification; use Monotify\Notifier; require 'vendor/autoload.php'; $notifier = new Notifier('realtime-notifier'); $notifier->addHandler(new SlackHandler( 'yourhookurl', 'channel' // without the # )); $notifier->addHandler(new HipchatHandler( 'yourtoken', 'room' // string or id )); $notifier->notify((new Notification('this is a realtime notification')));