2017 © Pedro Peláez
 

library phpslacknotification

Very simple wrapper to the Slack Incoming Message API endpoint.

image

leonardpg/phpslacknotification

Very simple wrapper to the Slack Incoming Message API endpoint.

  • Sunday, October 22, 2017
  • by leonardpg
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

phpslacknotification

Very simple wrapper to the Slack Incoming Message API endpoint. Suitable for use in projects that need to push messages to a Slack channel. See https://api.slack.com/ for more information about how to set up a Slack app., (*1)

Properties

  • url, (*2)

    The url of your Incoming Notification endpoint in your Slack app. See the api link above for more info., (*3)

  • message, (*4)

    The text message to send to the Slack channel., (*5)

  • responseCode, (*6)

    The HTTP response code returned by slack., (*7)

Methods

  • setURL, (*8)

    Sets the url endpoint., (*9)

  • setMessage, (*10)

    Sets the message to be posted to Slack., (*11)

  • setResponseCode, (*12)

    Sets the response code. Call this after the 'send' method to store the HTTP response code from the response., (*13)

  • getURL, (*14)

    Retrieves url endpoint., (*15)

  • getMessage, (*16)

    Retrieves the message., (*17)

  • getResponseCode, (*18)

    Retrieves the response code of the HTTP response from Slack., (*19)

  • send, (*20)

    Uses Curl to post to your incoming hook url., (*21)

The Versions

22/10 2017

dev-master

9999999-dev

Very simple wrapper to the Slack Incoming Message API endpoint.

  Sources   Download

22/10 2017

v0.1.2

0.1.2.0

Very simple wrapper to the Slack Incoming Message API endpoint.

  Sources   Download

22/10 2017

v0.1.1

0.1.1.0

Very simple wrapper to the Slack Incoming Message API endpoint.

  Sources   Download

21/10 2017

v0.1

0.1.0.0

Very simple wrapper to the Slack Incoming Message API endpoint.

  Sources   Download