autoaction / messages
Package for messages
1.0.1
2020-02-18 18:26 UTC
Requires
- php: >=7.0
- ext-json: *
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: >=4.8 < 6.0
This package is auto-updated.
Last update: 2025-02-19 05:12:53 UTC
README
Este documento mostra como usar este simples pacote para envio de mensagens via Slack.
Como instalar este pacote?
Via composer vocĂȘ pode instalar este pacote facilmente.
composer require autoaction/messages
Como rodar os testes?
./bin/phpunit
Icones
- :octagonal_sign:
- :warning:
- :black_circle:
Como usar SIMPLES?
use AutoAction\Messages\Slack\ClientSlack;
$slack = new ClientSlack([
'webhook' => 'https://hooks.slack.com/services/SEU-WEBHOOK',
'user' => 'hg-quotation',
'channel' => '#quotation'
]);
$slack->send('minha mensagem');
Como usar mais Avançado?
use AutoAction\Messages\Slack\ClientSlack;
$slack = new ClientSlack([
'webhook' => 'https://hooks.slack.com/services/SEU-WEBHOOK',
'user' => 'hg-quotation',
'channel' => '#quotation'
]);
$slack->setChannel('#quotation-alert')->send('minha mensagem');