Skip to content
CAI
Software that uses CAICheck a score

discord-php/DiscordPHP

62.5

Adequate · 16 November 2026

62.8k

lines of production code

PHP

primary language

1

measurement over time

CAI band scale
CAI lens gauges

What this system is

Behavioural changes

1 commit (0 fixes) modifying (repo-wide)

A change to existing behaviour in (repo-wide) — 1 commit, 22 files: “Namespace parts by the API routes they come from (\#1507)” (refs \#1507).

(repo-wide) · low confidence · unverified

1 commit (0 fixes) modifying .well-known

A change to existing behaviour in .well-known — 1 commit, 1 file: “Add .well-known/funding-manifest-urls (FLOSS/fund manifest verification)”.

.well-known · low confidence · unverified

10 commits (1 fix) modifying src/Discord/Parts/Channel/Message/Embed

A change to existing behaviour in src/Discord/Parts/Channel/Message/Embed — 10 commits (1 fix), 17 files: “Support received component embeds and website preview authoring”; “Verify component preview hydration, limits and safe head output”; “todo v11”; and 6 more (refs \#1507, \#1542, \#1553).

src/Discord/Parts/Channel/Message/Embed · medium confidence · unverified

126 commits (10 fixes) modifying src/Discord/WebSockets

A change to existing behaviour in src/Discord/WebSockets — 126 commits (10 fixs), 5 files: “fix event cache function”; “Fix most of event cache data inconsistency, variables naming, and add docs link (\#715)”; “Adjust Repository::create() to accept object data”; and 119 more (refs \#715, \#773, \#694, \#343, \#1565, …).

src/Discord/WebSockets · medium confidence · unverified

135 commits (25 fixes) modifying src/Discord/Parts/WebSockets

A change to existing behaviour in src/Discord/Parts/WebSockets — 135 commits (25 fixs), 12 files: “Fix created status reference to its parent Part created status”; “PHPDocs”; “Applied fixes from StyleCI”; and 129 more (refs \#760, \#343, \#695, \#1273, \#1491, …).

src/Discord/Parts/WebSockets · medium confidence · unverified

136 commits (18 fixes) modifying src/Discord/Parts

A change to existing behaviour in src/Discord/Parts — 136 commits (18 fixs), 4 files: “Protected visibility for PartTrait methods”; “Remove check in PartTrait::offsetUnset”; “Fix created status reference to its parent Part created status”; and 121 more (refs \#343, \#1446, \#1506, \#869, \#352, …).

src/Discord/Parts · medium confidence · unverified

15 commits (0 fixes) modifying src/Discord/Exceptions

A change to existing behaviour in src/Discord/Exceptions — 15 commits, 10 files: “CS fixer”; “Bumped license year”; “Updating email address”; and 12 more (refs \#1313, \#1368, \#1303).

src/Discord/Exceptions · medium confidence · unverified

158 commits (19 fixes) modifying src/Discord/Repository/Guild

A change to existing behaviour in src/Discord/Repository/Guild — 158 commits (19 fixs), 19 files: “Deprecate ChannelRepository::build”; “Client::fetchUser =\> UserRepository::getCurrentUser”; “Parse on PHP 8.1 to 8.3 again (\#1502)”; and 135 more (refs \#1502, \#343, \#695, \#648, \#702, …).

src/Discord/Repository/Guild · medium confidence · unverified

162 commits (15 fixes) modifying (repo-wide)

A change to existing behaviour in (repo-wide) — 162 commits (15 fixs), 19 files: “Updated changelog, updated readme, bumped version”; “Added documentation on message builder”; “Updated invite URL to use vanity URL”; and 149 more (refs \#718, \#670, \#1063, \#1501, \#1491, …).

(repo-wide) · low confidence · unverified

17 commits (0 fixes) modifying src/Discord/Repository/Monetization

A change to existing behaviour in src/Discord/Repository/Monetization — 17 commits, 3 files: “Update links to target Discord's new doc site”; “Monetization namespace”; “?: =\> ??”; and 14 more (refs \#1507, \#1450, \#1368, \#1453, \#1374, …).

src/Discord/Repository/Monetization · medium confidence · unverified

18 commits (3 fixes) modifying src/Discord/Repository/Thread

A change to existing behaviour in src/Discord/Repository/Thread — 18 commits (3 fixs), 1 file: “fix case inheritdoc to inheritDoc”; “fix duplicated channel\_id/thread\_id in repositories of Thread”; “Namespace parts by the API routes they come from (\#1507)”; and 15 more (refs \#1507, \#1015, \#1303, \#617, \#1374).

src/Discord/Repository/Thread · medium confidence · unverified

19 commits (0 fixes) modifying src/Discord/WebSockets/Events/Data

A change to existing behaviour in src/Discord/WebSockets/Events/Data — 19 commits, 8 files: “Create ChannelPinsUpdateData.php”; “Update links to target Discord's new doc site”; “PHPDocs”; and 15 more (refs \#1506, \#1507, \#1481).

src/Discord/WebSockets/Events/Data · medium confidence · unverified

195 commits (22 fixes) modifying src/Discord/Helpers

A change to existing behaviour in src/Discord/Helpers — 195 commits (22 fixs), 11 files: “return null if the part does not exist (just in case)”; “Added fill and getindex functions to Collection”; “Remove poly\_strlen from Buffer”; and 182 more (refs \#317, \#752, \#1044, \#1560, \#343, …).

src/Discord/Helpers · medium confidence · unverified

198 commits (14 fixes) modifying src/Discord/Builders/Components

A change to existing behaviour in src/Discord/Builders/Components — 198 commits (14 fixs), 34 files: “Update Section.php”; “Section::addComponent allows string as param”; “Update ActionRow.php”; and 166 more (refs \#760, \#773, \#740, \#1364, \#1440, …).

src/Discord/Builders/Components · medium confidence · unverified

2 commits (0 fixes) modifying src/Discord/Parts/Application/Team

A change to existing behaviour in src/Discord/Parts/Application/Team — 2 commits, 2 files: “docs: PHPDocs”; “Namespace parts by the API routes they come from (\#1507)” (refs \#1507).

src/Discord/Parts/Application/Team · medium confidence · unverified

2 commits (0 fixes) modifying src/Discord/Parts/Monetization

A change to existing behaviour in src/Discord/Parts/Monetization — 2 commits, 1 file: “cs-fixer”; “Create GameServer.php”.

src/Discord/Parts/Monetization · medium confidence · unverified

2 commits (0 fixes) modifying team-reflex/discord-php

A change to existing behaviour in team-reflex/discord-php — 2 commits, 1 file: “Discord Social SDK: lobbies, player sessions, provisional accounts and webhook events (\#1491)”; “Preserve issuance provenance and require provisional token reacquisition” (refs \#1491).

team-reflex/discord-php · medium confidence · unverified

20 commits (0 fixes) modifying scripts

A change to existing behaviour in scripts — 20 commits, 21 files: “Correct role reorder audit action and reconcile OpenAPI baseline (\#1556)”; “Reconcile OpenAPI baseline and prepare v10.72.0 (\#1564)”; “Add optional local RPC transport foundation (\#1541)”; and 17 more (refs \#1556, \#1564, \#1541, \#1515, \#1542, …).

scripts · medium confidence · unverified

20 commits (1 fix) modifying examples

A change to existing behaviour in examples — 20 commits (1 fix), 3 files: “update example”; “Update command.php”; “Pass repository to buildCommand and Register”; and 17 more (refs \#1507, \#1418, \#659, \#709, \#1057).

examples · medium confidence · unverified

22 commits (1 fix) modifying src/Discord/Parts/Gateway

A change to existing behaviour in src/Discord/Parts/Gateway — 22 commits (1 fix), 10 files: “Implement Ready Part”; “Update links to target Discord's new doc site”; “Create RequestGuildMembers.php”; and 19 more (refs \#1484, \#1410, \#1506, \#1507, \#1368, …).

src/Discord/Parts/Gateway · medium confidence · unverified

227 commits (26 fixes) modifying src/Discord/Builders

A change to existing behaviour in src/Discord/Builders — 227 commits (26 fixs), 14 files: “Added documentation on message builder”; “Update CommandAttributes.php”; “Add nonce https://github.com/discord/discord-api-docs/pull/5078/”; and 196 more (refs \#773, \#831, \#1280, \#1364, \#1438, …).

src/Discord/Builders · medium confidence · unverified

277 commits (51 fixes) modifying src/Discord/Repository

A change to existing behaviour in src/Discord/Repository — 277 commits (51 fixs), 16 files: “fix cache set not returning part”; “Reimplment typed self returns to interface”; “Deprecate ChannelRepository::build”; and 255 more (refs \#343, \#695, \#1491, \#953, \#1253, …).

src/Discord/Repository · medium confidence · unverified

29 commits (2 fixes) modifying src/Discord/Factory

A change to existing behaviour in src/Discord/Factory — 29 commits (2 fixs), 1 file: “CS fixer”; “Update code to PHP 7.2 type declaration (\#343)”; “Bumped license year”; and 26 more (refs \#343, \#1303, \#1476).

src/Discord/Factory · medium confidence · unverified

3 commits (0 fixes) modifying src/Discord/RPC

A change to existing behaviour in src/Discord/RPC — 3 commits, 16 files: “Prepare DiscordPHP v10.69.0 release (\#1544)”; “Add opt-in asynchronous Windows RPC pipe bridge (\#1547)”; “Add optional local RPC transport foundation (\#1541)” (refs \#1544, \#1547, \#1541).

src/Discord/RPC · medium confidence · unverified

321 commits (47 fixes) modifying src/Discord/Parts/User

A change to existing behaviour in src/Discord/Parts/User — 321 commits (47 fixs), 17 files: “Applied fixes from StyleCI”; “style fix”; “Add imports for Emoji part”; and 285 more (refs \#295, \#1371, \#760, \#343, \#322, …).

src/Discord/Parts/User · medium confidence · unverified

351 commits (66 fixes) modifying src/Discord/WebSockets/Events

A change to existing behaviour in src/Discord/WebSockets/Events — 351 commits (66 fixs), 92 files: “Fix most of event cache data inconsistency, variables naming, and add docs link (\#715)”; “Adjust Repository::create() to accept object data”; “Update InteractionCreate.php”; and 326 more (refs \#715, \#782, \#694, \#429, \#343, …).

src/Discord/WebSockets/Events · medium confidence · unverified

4 commits (0 fixes) modifying src/Discord/Builders/ComponentEmbed

A change to existing behaviour in src/Discord/Builders/ComponentEmbed — 4 commits, 5 files: “Verify component preview hydration, limits and safe head output”; “Simplify optional separator validation”; “Document stateless preview validation and factory test conventions”; and 1 more.

src/Discord/Builders/ComponentEmbed · medium confidence · unverified

4 commits (0 fixes) modifying src/Discord/MessageCommandClient

A change to existing behaviour in src/Discord/MessageCommandClient — 4 commits, 5 files: “Namespace parts by the API routes they come from (\#1507)”; “PHPDocs”; “PHPDocs; Collections unit test”; and 1 more (refs \#1507, \#1477).

src/Discord/MessageCommandClient · medium confidence · unverified

4 commits (0 fixes) modifying src/Discord/Parts/Application

A change to existing behaviour in src/Discord/Parts/Application — 4 commits, 9 files: “Namespace parts by the API routes they come from (\#1507)”; “Keep the fields Discord added to applications and search results (\#1538)”; “Prepare DiscordPHP v10.68.0 release (\#1537)”; and 1 more (refs \#1507, \#1538, \#1537, \#1536).

src/Discord/Parts/Application · medium confidence · unverified

4 commits (0 fixes) modifying src/Discord/Parts/Application/Identity

A change to existing behaviour in src/Discord/Parts/Application/Identity — 4 commits, 9 files: “Keep profile validation focused and lint clean”; “Add typed application identity profile stats”; “Namespace parts by the API routes they come from (\#1507)”; and 1 more (refs \#1507).

src/Discord/Parts/Application/Identity · medium confidence · unverified

40 commits (5 fixes) modifying src/Discord/CommandClient

A change to existing behaviour in src/Discord/CommandClient — 40 commits (5 fixs), 1 file: “Revert "replace is\_null with null to shut up codacy"”; “ran php cs-fixer”; “Don't re-add it to the arguments as lowercase if case sensitive option is set”; and 34 more (refs \#1044, \#343, \#1364, \#1507, \#1015, …).

src/Discord/CommandClient · medium confidence · unverified

422 commits (59 fixes) modifying src/Discord/Parts/Guild

A change to existing behaviour in src/Discord/Parts/Guild — 422 commits (59 fixs), 48 files: “Guild::createEmoji require image if filepath is null”; “Adjust Repository::create() to accept object data”; “Fix created status reference to its parent Part created status”; and 384 more (refs \#1103, \#1556, \#1018, \#773, \#888, …).

src/Discord/Parts/Guild · medium confidence · unverified

5 commits (0 fixes) modifying src/Discord/Builders/Components/Contracts

A change to existing behaviour in src/Discord/Builders/Components/Contracts — 5 commits, 1 file: “cs-fixer”; “Update copyright headers”; “Ran cs-fixer script (\#1368)”; and 2 more (refs \#1368, \#1294).

src/Discord/Builders/Components/Contracts · medium confidence · unverified

51 commits (12 fixes) modifying src/Discord/Http

A change to existing behaviour in src/Discord/Http — 51 commits (12 fixs), 5 files: “Removed ratelimit precision headers - unused now”; “Cleaned up some HTTP stuff”; “sanity fix”; and 45 more (refs \#474, \#343, \#437, \#182, \#353, …).

src/Discord/Http · medium confidence · unverified

524 commits (80 fixes) modifying src/Discord/Parts/Channel

A change to existing behaviour in src/Discord/Parts/Channel — 524 commits (80 fixs), 15 files: “Applied fixes from StyleCI”; “403 Prevention part 1: Channels checking the bots permission before actually performing the http request, currently only applied to easy parts, as others (like deletemessages) would force us to check each and every message, which would result in some cases to fetch the message if only id's are given, need to look into this later. this is part of https://github.com/teamreflex/DiscordPHP/projects/1\#card-49735666”; “Fix Forum startThread as multipart”; and 484 more (refs \#1103, \#1331, \#1460, \#1018, \#412, …).

src/Discord/Parts/Channel · medium confidence · unverified

553 commits (58 fixes) modifying src/Discord

A change to existing behaviour in src/Discord — 553 commits (58 fixs), 11 files: “Updated changelog, updated readme, bumped version”; “usePayloadCompression option (\#1355)”; “Add imports for Emoji part”; and 474 more (refs \#1355, \#1120, \#437, \#1502, \#1460, …).

src/Discord · medium confidence · unverified

76 commits (3 fixes) modifying src/Discord/Parts/Channel/Message

A change to existing behaviour in src/Discord/Parts/Channel/Message — 76 commits (3 fixs), 44 files: “Update FileUpload docs”; “Update MediaGallery.php”; “PHPDocs”; and 66 more (refs \#1332, \#1425, \#1364, \#1352, \#1478, …).

src/Discord/Parts/Channel/Message · medium confidence · unverified

8 commits (0 fixes) modifying src/Discord/OAuth2

A change to existing behaviour in src/Discord/OAuth2 — 8 commits, 5 files: “Add backend OAuth2 code exchange and grant revocation”; “Discord Social SDK: lobbies, player sessions, provisional accounts and webhook events (\#1491)”; “Preserve issuance provenance and require provisional token reacquisition”; and 5 more (refs \#1491, \#1525, \#1507, \#1514, \#1493, …).

src/Discord/OAuth2 · medium confidence · unverified

87 commits (7 fixes) modifying src/Discord/Parts/Permissions

A change to existing behaviour in src/Discord/Parts/Permissions — 87 commits (7 fixs), 3 files: “tidy up permission codes”; “ran php cs-fixer”; “Add missing permissions in Permission.php (\#625)”; and 82 more (refs \#625, \#760, \#773, \#343, \#322, …).

src/Discord/Parts/Permissions · medium confidence · unverified

89 commits (2 fixes) modifying src/Discord/Voice

A change to existing behaviour in src/Discord/Voice — 89 commits (2 fixs), 21 files: “Remove mode redundancy”; “Deprecate ChannelRepository::build”; “Update VoicePacket.php”; and 70 more (refs \#343, \#892, \#1015, \#1436, \#1303, …).

src/Discord/Voice · medium confidence · unverified

9 commits (0 fixes) modifying src/Discord/Parts/Channel/Forum

A change to existing behaviour in src/Discord/Parts/Channel/Forum — 9 commits, 2 files: “Forum Tag::emoji\_id nullable (\#1098)”; “Update links to target Discord's new doc site”; “Update Reaction.php”; and 6 more (refs \#1098, \#1015, \#1400, \#1303).

src/Discord/Parts/Channel/Forum · medium confidence · unverified

9 commits (0 fixes) modifying src/Discord/Parts/Lobby

A change to existing behaviour in src/Discord/Parts/Lobby — 9 commits, 3 files: “Update links to target Discord's new doc site”; “Discord Social SDK: lobbies, player sessions, provisional accounts and webhook events (\#1491)”; “Lobby::leave”; and 6 more (refs \#1491, \#1506, \#1507).

src/Discord/Parts/Lobby · medium confidence · unverified

90 commits (14 fixes) modifying src/Discord/Parts/Interactions/Request

A change to existing behaviour in src/Discord/Parts/Interactions/Request — 90 commits (14 fixs), 8 files: “Remove unused import”; “Fix created status reference to its parent Part created status”; “Message resolved property uses class (\#1331)”; and 85 more (refs \#1331, \#760, \#1428, \#1410, \#1506, …).

src/Discord/Parts/Interactions/Request · medium confidence · unverified

92 commits (11 fixes) modifying src/Discord/Parts/Interactions

A change to existing behaviour in src/Discord/Parts/Interactions — 92 commits (11 fixs), 6 files: “Fix created status reference to its parent Part created status”; “ran php cs-fixer”; “Parse on PHP 8.1 to 8.3 again (\#1502)”; and 83 more (refs \#1502, \#773, \#695, \#1376, \#1313, …).

src/Discord/Parts/Interactions · medium confidence · unverified

95 commits (11 fixes) modifying src/Discord/Repository/Channel

A change to existing behaviour in src/Discord/Repository/Channel — 95 commits (11 fixs), 9 files: “Adjust Repository::create() to accept object data”; “Make Thread createable, add invitable, deprecate archiver\_id (\#807)”; “revert endpoint channel”; and 89 more (refs \#807, \#343, \#695, \#1410, \#860, …).

src/Discord/Repository/Channel · medium confidence · unverified

Test coverage

1 commit adding/updating tests in tests/Parts/Permissions; 1 commit adding/updating tests in tests/Parts/WebSockets; 10 commits adding/updating tests in tests/OAuth2; 13 commits adding/updating tests in tests/Builders; 2 commits adding/updating tests in tests/RPC; 20 commits adding/updating tests in tests/Parts/Channel; 26 commits adding/updating tests in tests/Parts/Channel/Message; 3 commits adding/updating tests in tests/Helpers; 4 commits adding/updating tests in tests/Parts/Application; 5 commits adding/updating tests in tests/Parts/Channel/Message/Embed; 5 commits adding/updating tests in tests/Parts/Guild; 6 commits adding/updating tests in tests/Parts; 7 commits adding/updating tests in tests/Parts/Lobby; 7 commits adding/updating tests in tests/WebSockets; 77 commits adding/updating tests in tests; 9 commits adding/updating tests in tests/Scripts.

Dependencies

139 commits updating dependencies (2 manifests)

A dependency / build maintenance change in (dependencies) — 139 commits (5 fixs), 2 files: “docs: Updated marked version build docs markedjs/marked\#1927”; “require gmp for php x86”; “no test: remove seregazhuk's reactphp cache as it's outdated & not working”; and 132 more (refs \#1520, \#1560, \#343, \#846, \#1491, …).

(dependencies) · medium confidence · unverified

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Baseline

  • First survey — no prior run to compare against. CAI 62.5.

Lenses

  • Code Health 68.8
  • Architecture 85.7
  • Maturity 64.9
  • Readiness 71.6
  • Security 53.9
  • Performance 100.0

Changes since last survey

  • 300 commits — 283 feature/other, 17 fixes

By area

  • src/Discord — 231 commits
  • (root) — 22 commits
  • (repo) — 9 commits
  • .github/workflows — 8 commits
  • tests/Parts — 8 commits
  • .github/FUNDING.yml — 2 commits
  • docs/src — 2 commits
  • guide/provisional-token-renewal-evidence.rst — 2 commits
  • scripts/openapi-baseline.json — 2 commits
  • scripts/social-sdk-compatibility.md — 2 commits
  • tests/Builders — 2 commits
  • tests/DiscordSingleton.php — 2 commits
  • .agents/skills — 1 commit
  • .github/skills — 1 commit
  • .well-known/funding-manifest-urls — 1 commit
  • guide/index.rst — 1 commit
  • guide/oauth2.rst — 1 commit
  • guide/parts — 1 commit
  • scripts/OpenApiAutoCodeFillablePatcher.php — 1 commit
  • tests/Scripts — 1 commit

Notable commits

  • fix: Fix PHPDocs for Embed return types
  • fix: Fix addField validation
  • fix: Fix caching of thread members
  • fix: Fix casing
  • fix: Fix null repository keys from InteractionCreate; harden AbstractRepository::pushItem (#1490)
  • fix: Fix operator
  • fix: Fix operators
  • fix: Fix race condition
  • fix: Fix resolver
  • fix: Fix semantics
  • fix: Fix slash command regex apostrophe (#1489)
  • fix: Fix some .agents folder structure, AGENTS.md and SKILLS.md information and routing for agents. (#1473)
  • fix: Fix subscription constant values
  • fix: Fix websocket shutdown race (#1516)
  • fix: Fix: Cannot rewind a generator that was already run
  • fix: Revert Ready Part Implementation
  • fix: fix: synchronize lobby rosters after successful member requests
  • change: Add .github/skills for building bots and API libraries on DiscordPHP
  • change: Add .well-known/funding-manifest-urls (FLOSS/fund manifest verification)
  • change: Add @since tags for new methods and bump VERSION to v10.67.0 (#1525)
  • …and 280 more

Architecture

  • 0 containers · 1 bounded contexts · 0 dependency edges (baseline)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

discord-php/DiscordPHP was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 16 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 98a35da5bcbeb116aacc5e4d6aeb3d6a3f1cca9d — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.83+preprod-a489942cf94b.