team-reflex/discord-php
DiscordPHP is a PHP wrapper for Discord’s REST, Gateway, and Voice APIs. Build Discord bots and integrations in CLI using an event-driven approach (ReactPHP). Includes guides and class reference; community Laravel integration available via Laracord.
MESSAGE_CREATE, INTERACTION_CREATE). Bridging these paradigms introduces latency and complexity.session(), cache()) is incompatible with DiscordPHP’s stateless WebSocket connections. Persisting bot state (e.g., command cooldowns) would require custom solutions (e.g., Redis, database).laracord/laracord) means TPMs must architect workarounds for dependency injection, logging, and configuration.Artisan or a supervisor-managed service).react/http).laracord/laracord
sendFollowUpMessage()) would need queue wrappers or synchronous fallbacks.cache()->remember()) could help mitigate this but adds complexity.max_execution_time (e.g., 30s) may prematurely terminate long-running DiscordPHP processes (e.g., WebSocket reconnects).ext-uv, ext-gmp). Laravel’s default stack (e.g., older PHP versions in shared hosting) may not support this.symfony/http-client or guzzlehttp/guzzle are likely.token expires after 3s; Laravel’s request caching or queue delays could invalidate it.LogicException for invalid interaction responses) are not mapped to Laravel’s App\Exceptions\Handler. Custom exception handlers would be needed.laracord/laracord?laracord/laracord or custom provider).config/discord.php (encrypted if sensitive).Monolog (e.g., via discord->logger->setHandler()).MessageCreated) from DiscordPHP events for downstream services.react/http (for HTTP bridges) or react/promise.ext-uv may conflict; test thoroughly.cache() or database.database for analytics./discord/webhook).laracord/laracord if stable.^1.0.0) to avoid breaking changes.ext-uv/ext-ev is enabled in php.ini for performance.ext-json, ext-zlib, `extHow can I help you explore Laravel packages today?