discord-php/DiscordPHP
An API to interact with the popular messaging app Discord observed · 2026-09-01
Health v2 · maintenance only
95/100
- Activity 100
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 4039
- days_rel: 4
- days_push: 2
- n_releases_24m: 428
Adoption not part of the score
1079 stars · 250 forks observed · 2026-09-01
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
DiscordPHP is a PHP library wrapping the official Discord REST, gateway, and voice APIs for building bots. It runs in CLI with an event loop and promises, supporting PHP 8.1+.
Use cases
- build a discord bot in php
- interact with the discord api from php
- create a moderation bot for my discord server
- send messages to discord channels programmatically
- handle discord gateway events in php
- add voice support to a discord bot
When to choose
- you want to build a Discord bot in PHP
- you need access to Discord REST, gateway, and voice APIs
- you are comfortable with event loops and async PHP
When to avoid
- you need to run the bot inside a webserver like Apache or nginx
- you want a bot framework in another language
- you need a simple webhook-only sender without a long-running process
Facets
library · maturity active
sdk http-client websocket messaging-platforms apis developer-tools php cli windows discord discord-bot bot-framework rest-api gateway voice-api async reactphp automation linux macos
1 source
- readme: https://github.com/discord-php/DiscordPHP · fetched 2026-09-01 · 805f1348ad78
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| discord-php/DiscordPHP | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="discord-php/DiscordPHP")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem