Skip to content

mike1000000000/SlackMultiChannelSend

Repository files navigation

License   Known Vulnerabilities   Lint

Slack Multichannel Send

This Laravel 10 project allows organizations to send multiple Slack messages to multiple channels at once using Slack tokens and message templates.

FrontPage

Features

  • Send multiple Slack messages to multiple channels at once
  • Create and manage Slack message templates using tokens

Requirements

  • PHP 8.0+
  • Composer 2.2+
  • Node.js
  • NPM
  • MySQL
  • Slack Workspace
  • Slack App

Configuration

Slack Workspace

  1. Create a Slack Workspace at https://slack.com/create

  2. Create a Slack App at https://api.slack.com/apps

  3. You will need to use either a User OAuth Token or Bot User OAuth Token to send messages to Slack channels.
    Both tokens can be accessed in the apps OAuth & Permissions page.

    Users Tokens

    User OAuth Tokens allow you to post as the user who generated the token. Users can post to public and private channels.

    User Permissions needed:

    • channels:read
    • chat:write
    • groups:read
    • im:read

    Bot User Tokens

    Bot User OAuth Tokens allow you to post as a bot user. Bots need to be invited to channels before they can post to them.

    Bot permissions needed:

    • channels:read
    • chat:write
    • chat:write.customize
    • groups:read
    • im:read

  4. Install the Slack App to your Slack Workspace

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/mike1000000000/SlackMultiChannelSend.git

  1. Install Composer dependencies:
cd SlackMultiChannelSend
composer install

  1. Copy the .env.example file to .env and configure the required environment variables:
cp .env.example .env

    NOTE: Ensure you set your default user info and database credentials in the .env file.


  1. Generate an application key:
php artisan key:generate

  1. Run migrations:
php artisan migrate

  1. Seed default data:
php artisan db:seed

  1. Install NPM dependencies:
npm install

  1. Compile assets:
npm run build

  1. Start the local development server:
php artisan serve

You can now access the server at http://localhost:8000

Default credentials are:

u: [email protected]
p: javaria

License

This project is open-sourced software licensed under the MIT license.

Credits

Contributing

Contributions are welcome.

About

Send Slack messages to multiple channels using templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages