This Laravel 10 project allows organizations to send multiple Slack messages to multiple channels at once using Slack tokens and message templates.
- Send multiple Slack messages to multiple channels at once
- Create and manage Slack message templates using tokens
- PHP 8.0+
- Composer 2.2+
- Node.js
- NPM
- MySQL
- Slack Workspace
- Slack App
-
Create a Slack Workspace at https://slack.com/create
-
Create a Slack App at https://api.slack.com/apps
-
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.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:readchat:writegroups:readim:read
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:readchat:writechat:write.customizegroups:readim:read
-
Install the Slack App to your Slack Workspace
- Clone the repository to your local machine:
git clone https://github.com/mike1000000000/SlackMultiChannelSend.git- Install Composer dependencies:
cd SlackMultiChannelSend
composer install- Copy the
.env.examplefile to.envand configure the required environment variables:
cp .env.example .envNOTE: Ensure you set your default user info and database credentials in the
.envfile.
- Generate an application key:
php artisan key:generate- Run migrations:
php artisan migrate- Seed default data:
php artisan db:seed- Install NPM dependencies:
npm install- Compile assets:
npm run build- Start the local development server:
php artisan serveYou can now access the server at http://localhost:8000
Default credentials are:
u: [email protected]
p: javaria
This project is open-sourced software licensed under the MIT license.
Contributions are welcome.