drmaxis/deploybot
DeployBot
A Slack + Discord bot framework for Laravel. Drop it in, register your slash commands, ship.
Install
composer require drmaxis/deploybot
php artisan vendor:publish --tag=deploybot-config
php artisan vendor:publish --tag=deploybot-migrations
php artisan vendor:publish --tag=deploybot-routes
php artisan migrate
Configure
# .env
DEPLOYBOT_SLACK_SIGNING_SECRET=
DEPLOYBOT_SLACK_BOT_TOKEN=
# optional — one per logical channel
DEPLOYBOT_DISCORD_WEBHOOK_RELEASES=
DEPLOYBOT_DISCORD_WEBHOOK_INCIDENTS=
Register a command
use DrMaxis\Deploybot\Commands\CommandContext;
use DrMaxis\Deploybot\Commands\CommandInterface;
use DrMaxis\Deploybot\Commands\CommandResponse;
class PingCommand implements CommandInterface
{
public static function name(): string { return 'ping'; }
public static function description(): string { return 'Reply with pong.'; }
public static function requiresAdmin(): bool { return false; }
public function handle(CommandContext $ctx): CommandResponse
{
return CommandResponse::message('pong');
}
}
Register from a service provider:
public function boot(CommandRegistry $registry): void
{
$registry->register(PingCommand::class);
}
Point your Slack app's slash command at https://your-app.example/deploybot/slack/command. The built-in help command lists every registered command.
What's in the box
- HMAC signature verification (constant-time, with timestamp-skew replay guard)
- Slash-command dispatcher with admin allowlisting
- Slack Web API client (
chat.postMessage,chat.postEphemeral) - Discord webhook client (multi-purpose routing)
- Channel-subscription model for broadcasting events
- Block Kit response envelope types
- Auto-discovered service provider · Laravel 12 / 13
Contributing
See CONTRIBUTING.md.
Security
Report privately via GitHub security advisories. See SECURITY.md.
License
MIT
Related Packages
guanguans/laravel-exception-notify
Monitor exception and report to the notification channels(Log、Mail、AnPush、Bar...
49,778
149
anpush
bark
bot
chanify
dingtalk
discord
email
error
exception
gitter
googlechat
igot
laravel
lark
log
logger
mail
mattermost
microsoftteams
monitor
notification
notifier
notify
nowpush
ntfy
push
pushback
pushbullet
pushdeer
pushme
pushover
pushplus
qq
qq 频道机器人
rocketchat
sdk
serverchan
server酱
showdocpush
simplepush
slack
telegram
wework
wpush
xizhi
yifengchuanhua
zohocliq
zohocliqwebhook
zulip
一封传话
企业微信
企业微信群机器人
微信
息知
钉钉
钉钉群机器人
飞书
飞书群机器人
guanguans/notify
Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleCh...
122,791
692
anpush
bark
bot
chanify
dingtalk
discord
gitter
googlechat
igot
lark
mattermost
microsoftteams
notification
notifier
notify
notifyx
nowpush
ntfy
push
pushback
pushbullet
pushdeer
pushme
pushover
pushplus
qq
qq 频道机器人
rocketchat
sdk
serverchan
server酱
showdocpush
simplepush
slack
telegram
wework
wpush
xizhi
yifengchuanhua
zohocliq
zohocliqwebhook
zulip
一封传话
企业微信
企业微信群机器人
微信
息知
钉钉
钉钉群机器人
飞书
飞书群机器人
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.3.2 | ^8.3 | ^12.0 | | MIT | |
| v0.3.1 | ^8.3 | ^12.0 | | MIT | |
| v0.3.0 | ^8.3 | ^12.0 | | MIT | |
| v0.2.0 | ^8.3 | ^12.0 | | MIT | |
| v0.1.0 | ^8.3 | ^11.0 | | MIT |