kaz29/cake_slack

Slack Plugin for CakePHP

Installs: 51 084

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 2

Forks: 4

Open Issues: 1

Type:cakephp-plugin

dev-master 2021-03-02 21:33 UTC

This package is auto-updated.

Last update: 2024-11-21 04:11:46 UTC


README

Setting

Config/bootstrap.php

Configure::write('Slack', [
    'token' => 'Your access token', // 'XXXXXXXXX/YYYYYYYYY/zzzzzzzzzzzzzzzzzzzzzzzz'
    'channel' => '#generic',		// default
    'username' => 'cakephp',		// default
    'icon_emoji' => ':ghost:',	// default
]);

How to use

<?php
App::uses('Slack', 'CakeSlack.Lib');

....

Slack::send('Hello from CakePHP!');