neosrulez / flow-slackclient
A slack client package for Neos and Flow.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- neos/flow: *
This package is not auto-updated.
Last update: 2024-11-15 20:02:50 UTC
README
Installation
The NeosRulez.Flow.SlackClient package is listed on packagist (https://packagist.org/packages/neosrulez/flow-slackclient) - therefore you don't have to include the package in your "repositories" entry any more.
Just run:
composer require neosrulez/flow-slackclient
Configuration
NeosRulez: Flow: SlackClient: webhookUrl: 'https://hooks.slack.com/services/X02KD054T/C02MFB2MY14/xxXH5Bz0uaV5xqdW4s025F5i'
Usage
<?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'); } }
Author
- E-Mail: mail@patriceckhart.com
- URL: http://www.patriceckhart.com