2017 © Pedro Peláez
 

library slack-notifier

Slack Notifier for PHP

image

mizanur/slack-notifier

Slack Notifier for PHP

  • Tuesday, January 23, 2018
  • by mizan3008
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,067 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 5 % Grown

The README.md

Slack Notifier

Super-simple, minimum abstraction SlackNotifier v1, in PHP., (*1)

Requires PHP 5.3 and a pulse., (*2)

Installation

You can install the slack-notifier using Composer:, (*3)

composer require mizanur/slack-notifier

or, (*4)

php composer.phar require mizanur/slack-notifier

HOW TO USER

You can start with .env or without .env, (*5)

With .env, (*6)

We need setup some configuration variable in .env, (*7)

SLACK-WEBHOOK=https://hooks.slack.com/services/---/---/---

Initialize slack notifier, (*8)

$slackNotifier = new \SlackNotifier\SlackNotifier();

Without .env, (*9)

Initialize slack notifier, (*10)


$slackNotifier = new \SlackNotifier\SlackNotifier('SLACK-WEBHOOK');

Send error notification to your slack channel, (*11)

$slackNotifier->notifyError('YOUR ERROR MESSAGE');

Send success or info notification to your slack channel, (*12)

$slackNotifier->notifyInfo('YOUR MESSAGE');

Send exception notification to your slack channel, (*13)


try{ #Your code... }catch(\Exception $ex){ $slackNotifier->notifyException($ex); }

The Versions

23/01 2018

dev-master

9999999-dev https://github.com/mizanur-rahman/slack-notifier.git

Slack Notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

slack-notifier-php

23/01 2018

v1.5

1.5.0.0 https://github.com/mizanur-rahman/slack-notifier.git

Slack Notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

slack-notifier-php

07/08 2017

v1.4

1.4.0.0 https://github.com/mizanur-rahman/slack-notifier.git

Slack Notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

slack-notifier-php

31/07 2017

v1.3

1.3.0.0 https://github.com/mizanur-rahman/slack-notifier.git

Slack Notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

slack-notifier-php

15/06 2017

v1.2

1.2.0.0 https://github.com/mizanur-rahman/slack-notifier.git

Slack Notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

slack-notifier-php

15/06 2017

v1.1

1.1.0.0 https://github.com/mizanur-rahman/slack-notifier.git

Slack Notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

slack-notifier-php

11/06 2017

v1.0

1.0.0.0 https://github.com/mizanur-rahman/slack-notifier.git

Slack Notifier for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

by Mizanur Rahman

slack-notifier-php