DiscordPHP is a PHP library for building Discord bots and integrations with Discord’s REST, gateway, and voice APIs. It is built around ReactPHP components, so developers need to understand event loops, promises, and long-running CLI processes. The library is not designed to run like a traditional web request inside Apache or Nginx. Instead, it runs as a persistent PHP process that connects to Discord, listens for events, and reacts through handlers. It supports Composer installation, intents, examples, documentation, community tutorials, and framework-agnostic bot development. DiscordPHP is best suited for PHP developers who want to build real-time Discord applications without switching to JavaScript, Python, or Go.
Features
- PHP Discord API wrapper
- REST, gateway, and voice support
- ReactPHP event-loop foundation
- Composer package installation
- CLI-based bot runtime
- Examples and community documentation