neosrulez / flow-slackclient
该包最新版本(1.0.0)没有提供许可证信息。
Neos和Flow的Slack客户端包。
1.0.0
2021-11-18 06:57 UTC
Requires
- neos/flow: *
This package is not auto-updated.
Last update: 2024-09-20 19:20:52 UTC
README
安装
NeosRulez.Flow.SlackClient包已在Packagist上列出(https://packagist.org.cn/packages/neosrulez/flow-slackclient)- 因此,您无需再在“repositories”条目中包含该包。
只需运行
composer require neosrulez/flow-slackclient
配置
NeosRulez: Flow: SlackClient: webhookUrl: 'https://hooks.slack.com/services/X02KD054T/C02MFB2MY14/xxXH5Bz0uaV5xqdW4s025F5i'
用法
<?php namespace Acme\Package\Controller; use Neos\Flow\Annotations as Flow; use Neos\Flow\Mvc\Controller\ActionController; use NeosRulez\Flow\SlackClient\Service\SlackService; class AcmeController extends ActionController { /** * @Flow\Inject * @var SlackService */ protected $slackService; /** * @return bool */ public function indexAction():bool { return $this->slackService->send('Your message to your Slack App'); } }