https://github.com/raph6/slack-php
php easy slack alerts
https://github.com/raph6/slack-php
alerts notifications php slack
Last synced: 23 days ago
JSON representation
php easy slack alerts
- Host: GitHub
- URL: https://github.com/raph6/slack-php
- Owner: raph6
- Created: 2022-02-09T13:42:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T13:49:32.000Z (over 4 years ago)
- Last Synced: 2025-08-13T06:54:14.224Z (10 months ago)
- Topics: alerts, notifications, php, slack
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
composer require raph6/slack-alerts
```
```php
use raph6\SlackAlerts\SlackAlerts;
// ---
$slack1 = new SlackAlerts('https://hooks.slack.com/services/xxxxxx/yyyyyyy/zzzzzz');
$slack1->setText('test');
$slack1->send();
// ---
$slack2 = new SlackAlerts([
'default' => 'https://hooks.slack.com/services/xxxxxx/yyyyyy/zzzzzz',
'channel2' => 'https://hooks.slack.com/services/yyyyyy/xxxxxx/ssssss'
]);
$slack2->setText('test');
$slack2->send('channel2');
```