PHP Classes
elePHPant
Icontem

File: src/config/config.php

Recommend this page to a friend!
  Classes of Alexander Chibrikin  >  PHP Slack Message  >  src/config/config.php  >  Download  
File: src/config/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Slack Message
Send messages to Slack users
Author: By
Last change:
Date: 9 months ago
Size: 3,434 bytes
 

Contents

Class file image Download
<?php

return [

   
/*
    |-------------------------------------------------------------
    | Incoming webhook endpoint
    |-------------------------------------------------------------
    |
    | The endpoint which Slack generates when creating a
    | new incoming webhook. It will look something like
    | https://hooks.slack.com/services/XXXXXXXX/XXXXXXXX/XXXXXXXXXXXXXX
    |
    */

   
'endpoint' => '',

   
/*
    |-------------------------------------------------------------
    | Default channel
    |-------------------------------------------------------------
    |
    | The default channel we should post to. The channel can either be a
    | channel like #general, a private #group, or a @username. Set to
    | null to use the default set on the Slack webhook
    |
    */

   
'channel' => '#general',

   
/*
    |-------------------------------------------------------------
    | Default username
    |-------------------------------------------------------------
    |
    | The default username we should post as. Set to null to use
    | the default set on the Slack webhook
    |
    */

   
'username' => 'Robot',

   
/*
    |-------------------------------------------------------------
    | Default icon
    |-------------------------------------------------------------
    |
    | The default icon to use. This can either be a URL to an image or Slack
    | emoji like :ghost: or :heart_eyes:. Set to null to use the default
    | set on the Slack webhook
    |
    */

   
'icon' => null,

   
/*
    |-------------------------------------------------------------
    | Link names
    |-------------------------------------------------------------
    |
    | Whether names like @regan should be converted into links
    | by Slack
    |
    */

   
'link_names' => false,

   
/*
    |-------------------------------------------------------------
    | Unfurl links
    |-------------------------------------------------------------
    |
    | Whether Slack should unfurl links to text-based content
    |
    */

   
'unfurl_links' => false,

   
/*
    |-------------------------------------------------------------
    | Unfurl media
    |-------------------------------------------------------------
    |
    | Whether Slack should unfurl links to media content such
    | as images and YouTube videos
    |
    */

   
'unfurl_media' => true,

   
/*
    |-------------------------------------------------------------
    | Markdown in message text
    |-------------------------------------------------------------
    |
    | Whether message text should be interpreted in Slack's Markdown-like
    | language. For formatting options, see Slack's help article: http://goo.gl/r4fsdO
    |
    */

   
'allow_markdown' => true,

   
/*
    |-------------------------------------------------------------
    | Markdown in attachments
    |-------------------------------------------------------------
    |
    | Which attachment fields should be interpreted in Slack's Markdown-like
    | language. By default, Slack assumes that no fields in an attachment
    | should be formatted as Markdown.
    |
    */

   
'markdown_in_attachments' => [],

   
// Allow Markdown in just the text and title fields
    // 'markdown_in_attachments' => ['text', 'title']

    // Allow Markdown in all fields
    // 'markdown_in_attachments' => ['pretext', 'text', 'title', 'fields', 'fallback']

];