iribarren / slack-notify
There is no license information available for the latest version (dev-master) of this package.
very simple class for sending slack notificacions
dev-master
2017-10-10 22:07 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-04-16 09:40:33 UTC
README
A very simple class for sending slack notificacions
Instalation
composer require iribarren/slack-notify
Usage
Create a new SlackNotifier object Set the slack webhook URL Set your message and format Send it!
$notifier = new SlackNotifier(); $notifier->setSlackWebHookUrl("YOUR_SLACK_WEBHOOK_URL"); $notifier->setText("I think you all should take a rest"); $notifier->setUserName("Boss"); $notifier->setChannel("#dev-team"); $notifier->notify()