richpeers / laravel-slack-resources
Store url resources from slack using /resource url tag
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.2
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2024-10-22 09:42:30 UTC
README
Laravel package for saving url resources from a slack command
This will intercept slack command /resource https://useful-url tag
, authenticate against a slack signing secret key, record the URL and associated tags. It will then dispatch a queued job to fetch the site's meta data and title.
Install:
composer require richpeers/laravel-slack-resources
Run migrations
php artisan migrate
Setup slack app
- Create new app
- Add command
- point commmand post to your url eg
https:://your-url/api/resources
- Install the app to your slack workspace
- Add the slack app's signing sectet to .env
SLACK_SIGNING_SECRET=your_slack_app_signing_secret