# discord-php/DiscordPHP

An API to interact with the popular messaging app Discord

Repository: https://github.com/discord-php/DiscordPHP
Canonical: https://ross.abutalabs.com/products/discordphp
Language: PHP
License: MIT
License Family: permissive
Topics: php, discord, team-reflex, discord-api
Last push: 2026-08-31T13:15:24+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 100, release rhythm 87, longevity 100
- inputs: {"age_days": 4039, "days_push": 2, "days_rel": 4, "gap_med": 0, "n_releases_24m": 428}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1079, forks 250 (observed 2026-09-01T02:14:00.912532+00:00)

## What it is
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
- artifact type: library
- maturity: active
- function: sdk, http-client, websocket
- domain: messaging-platforms, apis, developer-tools
- platform: php, cli, windows
- tags: discord, discord-bot, bot-framework, rest-api, gateway, voice-api, async, reactphp, automation, linux, macos

## Member repositories
- discord-php/DiscordPHP (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:00.912532+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:14.604286+00:00, confidence not recorded.
  - readme: https://github.com/discord-php/DiscordPHP (fetched 2026-09-01T02:14:00.912532+00:00, sha 805f1348ad78)
- Data as of 2026-08-30T08:39:29.467469+00:00.
