PHP code example of neosrulez / flow-slackclient

1. Go to this page and download the library: Download neosrulez/flow-slackclient library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

neosrulez / flow-slackclient example snippets



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');
    }

}