Repository navigation
Description
Tracks moving every remaining utopia-php/* library into packages/<name> per rfc/monorepo.md. It started with the messaging chain (done, below); it now covers the other 32 packages Appwrite still resolves from vendor/, plus the utopia-php libraries that were never in the monorepo but have first-party consumers (wave 5). Those used only by appwrite-labs go to appwrite/cloud or appwrite-labs/edge rather than here. One package per PR (two only when they require each other), in dependency order; each PR follows the six-step absorb playbook and lands with a merge commit (labelled absorb).
Where we are
Waves 1–5 done (2026-10-05): 46 packages live in Appwrite's packages/, 5 in Cloud's (pay cloudevents waf feed tests), 3 in Edge's (async fastly proxy). Appwrite's lock still vendors 3: database 7.4.0, mongo 1.5.4, migration 2.0.8 (config absorbed 2026-10-07).
Remaining (audit 2026-10-07)
config✅ absorbed (chore: absorb utopia-php/config into packages/config #14227, merged): 2.x lives inpackages/configwith the registry (setParam/getParam) restored onConfig, released asconfig/2.1.0(mirror + Packagist). Retired from the monorepo (chore: retire config after its move to Appwrite utopia-php/monorepo#373) and Cloud moved onto it (appwrite-labs/cloud#6371, with test(scopes): read each catalog from its own file #14229 so CE's scopes test reads its own catalogs). Edge and executor can move from 0.2 to^2.1when convenient.- Wave 6:
mongo+databasein one PR (head now 7.4.0; 56 open PRs / 4 issues onutopia-php/database, 3 / 2 onmongo), thenmigration(head 2.0.8; 20 PRs / 2 issues). Exit: Appwrite's lock has noutopia-php/*. Packagist: register✅ registered 2026-10-07, auto-update hooks in place.waf,feed,mqtt,cdnEdge✅vcsentries dropped (appwrite-labs/edge#1554) and offfetch(appwrite-labs/edge#1557, Feat - Parellel builds to reduce build time #1562, refactor(tests): build the e2e client on utopia-php/client open-runtimes/executor#261).- Cloud: drop its last direct requirement,
utopia-php/migration ^2.0.0, and take it throughserver-ce(after wave 6). ✅ released 2026-10-07 (mirror release, on Packagist).client/0.6.0releaselogger: three consumers moved to spans (all merged). Left: archiveopen-runtimes/proxy(needs an open-runtimes admin), then archiveutopia-php/logger.- Phase 6 (step B for
validatorsandconsole, then drop the bareUtopia\autoload entry). - Phase 7: after chore: retire config after its move to Appwrite utopia-php/monorepo#373, the monorepo holds only
replicationandreputation. Archivereplication, placereputation, close auth: OAuth2 clients, identity validators, and Phone calling codes utopia-php/monorepo#137 and Fix PT-BR Typo #167, archive the monorepo.
Decisions pending: video (no first-party consumer found on 2026-10-07; stays standalone), utopia-php/monorepo#137 (draft on the retired auth / validators / dns; close or re-open against packages/), utopia-php/validators#6 (WhiteList casing; re-open against packages/validators),
Dependency graph (remaining packages only)
Already-absorbed dependencies are omitted.
| Package | Requires (still vendored) |
|---|---|
config fetch mongo platform |
none |
database |
mongo |
abuse usage |
database |
audit |
database fetch (switches to client in its absorb) |
migration |
database |
orchestration |
none |
platform, abuse, audit and usage can all land before database: the root still requires utopia-php/database, and replace covers each package's own requirement on it.
Plan
Waves follow the graph. Packages within a wave are independent and can run as parallel PRs. Waves 4 and 5 land before database (wave 6) because replace lets a package land before a vendored dependency.
Wave 1: leaves ✅
| Package | Absorb PR | Monorepo retire | Notes |
|---|---|---|---|
validators |
#13897 | utopia-php/monorepo#356 | bare Utopia\ prefix until phase 6; bin/monorepo learned the bare prefix and a duplicate-class check |
di |
#13885 | utopia-php/monorepo#355 | step A: Utopia\DI\ |
auth |
#13890 | utopia-php/monorepo#357 | vcs repository entry dropped |
cache |
#13899 | utopia-php/monorepo#351 | |
schedule |
#13887 | utopia-php/monorepo#353 | |
balancer |
#13886 | standalone | classic branch protection removed from the mirror |
detector |
#13891 | standalone | |
locale |
#13888 | standalone | |
query |
#13896 | standalone | 0.6.0 → 0.6.1 |
registry |
#13889 | standalone | 0.5.0 → 0.6.0 |
dsn |
#13894 | standalone | 0.2.1 → 1.0.0 |
mqtt |
#13892 | standalone | not yet on Packagist |
client |
#13910 | redirect hop cap; in-memory bodies replay on 307/308 | |
fetch |
#13893 | replaced by client, not absorbed |
|
config |
2.x → packages/config with the registry restored (#14227) |
Every mirror's tree matches its packages/<name>. Open mirror PRs and issues were closed with a pointer here.
Wave 2 ✅
| Package | Home | Lock → head | Notes |
|---|---|---|---|
console |
monorepo | 0.2.9 | Declares bare Utopia\ (Utopia\Console); step B in phase 6 |
servers |
monorepo | 0.4.11 | |
cdn |
monorepo, VCS | 0.0.13 | Not on Packagist; drop the vcs entry, register the mirror |
domains |
monorepo | 4.3.0 | Hoists psr/http-client, psr/http-message |
storage |
monorepo | 4.3.0 | Hoists psr/http-client, psr/http-message |
Wave 3 ✅
| Package | Home | Lock → head | Notes |
|---|---|---|---|
http |
monorepo | 2.0.0-rc33 | Step A: Utopia\ → Utopia\Http\. 269 Appwrite files; last user of the bare prefix apart from validators and console |
cli |
monorepo | 0.24.4 | |
queue |
monorepo | 6.0.0 | Delete tests/extensions/Queue/InMemoryConnection.php in phase 8 once queue's own fakes are here |
dns |
monorepo | 3.0.7 | |
emails |
standalone | 0.8.3 | |
vcs |
monorepo, VCS | 5.5.1 | Switch from fetch to client in the absorb. Drop the vcs entry. Hoists adhocore/jwt. 13 open issues/PRs on the repo to triage |
Wave 4: framework tier ✅
| Package | Home | Lock → head | Notes |
|---|---|---|---|
platform |
monorepo | 1.0.0-rc25 | Every action and worker inherits from it: run the full e2e matrix by workflow_dispatch |
abuse |
standalone | 2.0.1 | Hoists appwrite/appwrite (PHP SDK ^27.1, already in the lock at 27.1.0). Its Redis cluster log adapters need a PHPStan baseline |
audit |
monorepo | 4.0.3 | Switch from fetch to client in the absorb |
usage |
standalone | 0.16.6 | Hoists psr/http-client |
Wave 5: libraries that were never in the monorepo
Audit of the utopia-php org on 2026-10-01: every repository that is not in packages/, not in utopia-php/monorepo, and not already planned below. Appwrite's lock contains none of these. Each goes to the repository of its consumers: Appwrite when anything outside appwrite-labs uses it, otherwise appwrite/cloud, or appwrite-labs/edge when Edge is the only user. None requires database, mongo or migration, so the whole wave lands before wave 6.
Into appwrite/appwrite packages/ (consumers outside appwrite-labs)
| Package | Head | Consumers | Requires (to fix in the absorb) | Notes |
|---|---|---|---|---|
orchestration |
0.20.0 | open-runtimes/executor (and edge through it) | console 0.2.* |
Docker-in-Docker e2e compose. 1 issue, 5 PRs to triage |
Into appwrite/cloud packages/ (used by Cloud and Edge)
Cloud first gains the split tooling: bin/monorepo split and split.yml, so every package under its packages/ is pushed to its utopia-php/<name> mirror and Edge keeps requiring it from there. Same layout and absorb playbook as here, with the pay move (0657709edc) as the template.
| Package | Head | Cloud / Edge files | Requires (to fix in the absorb) | Notes |
|---|---|---|---|---|
| split tooling | Port bin/monorepo split + split.yml; first run splits packages/pay, which has drifted from utopia-php/pay since 2026-09-29 |
|||
cloudevents |
0.1.0 | 2 / 1 | none | Leaf; land first, feed needs it |
waf |
0.1.2 | 36 / 6 | validators ^1.0 |
Not on Packagist: register the mirror, drop the vcs entries in cloud and edge. 3 open PRs |
tests |
0.1.0 | 15 / 19 (test suites) | none | Cloud maps it in autoload-dev. Its own tests become Utopia\Tests\Tests\ |
feed |
1.1.2 | 7 / 2 | client ^0.4 → ^0.5, cache 4.*||5.*, pools, psr7, cloudevents |
After cloudevents. Not on Packagist: register the mirror, drop the vcs entries. Redis e2e compose |
Into appwrite-labs/edge packages/ (Edge is the only user; no split, archive the repository with a pointer)
| Package | Head | Edge files | Requires (to fix in the absorb) | Notes |
|---|---|---|---|---|
async |
0.2.0 | 9 (VCS, locked 0.1.1) | opis/closure 4.* |
Hoists opis/closure; amphp/react adapters stay suggest, their dev requirements hoisted to require-dev. PHPUnit pinned at 11.5.45 |
proxy |
0.2.2 | 18 (VCS) | validators ^0.6 → ^1.0, console * → ^0.2, ext-redis, ext-swoole >=6 |
Declares PHPUnit ^13 |
fastly |
0.2.1 | 2 | client ^0.5, psr7 ^0.2 |
The RFC planned to archive it, but Edge requires ^0.2. Retire PR on utopia-php/monorepo as usual |
The three tracks are independent and run in parallel; within the Cloud track, the split tooling comes first and feed follows cloudevents.
Stays standalone, then archive
logger(0.8.0): Appwrite dropped it in 1d639e0 (errors through spans). Its consumers (appwrite-labs/databases, appwrite-labs/pwned, appwrite/docker-geo, open-runtimes/proxy) pin 0.7/0.8 from Packagist. Not absorbed (chore: absorb logger into packages/logger #14051 closed): move them to span-based error reporting, then archive.
Archive, no first-party consumer
| Repository | Last commit | Why |
|---|---|---|
ab |
2023-10-11 | No consumer, 15 downloads/month |
view |
2024-04-01 | No consumer, 0 downloads/month |
preloader |
2023-01-28 | Removed from Appwrite as dead code in 35873e5 |
analytics |
2026-05-05 | Removed from Appwrite in 35873e5; still requires the archived fetch |
Decision pending
video(0.0.1, active 2026-08): no consumer yet. It goes wherever its first consumer lives; until then leave it standalone.
Out of scope: .github, demo, docker-base, docs, php-scrypt-test (not libraries); database-proxy, fetch, jwt, swoole (already archived).
Wave 6: database
| Package | Home | Lock → head | Notes |
|---|---|---|---|
mongo + database |
standalone | 1.5.4 / 7.4.0 | One PR: they share the MariaDB/PostgreSQL/MongoDB e2e compose. Switch the widened-matrix rule in ci.yml to a packages/database/ + packages/mongo/ path check. Hoists ramsey/uuid. 60 open issues/PRs on utopia-php/database to triage (2026-10-07) |
migration |
standalone | 2.0.8 | Set utopia-php/dsn to ^1.0. Hoists halaxa/json-machine, appwrite/appwrite. 22 open issues/PRs to triage (2026-10-07) |
Exit: composer.lock contains no utopia-php/* package.
Phase 6: step B
-
validators:Utopia\Validator→Utopia\Validator\Validator,Utopia\PHPStan→Utopia\Validator\PHPStan\*;class_aliasshim, major release, Appwrite call sites in the same PR (refactor(validators)!: move the base class into Utopia\Validator #14263, green; merge, then releasevalidators/2.0.0) -
console:Utopia\Console→Utopia\Console\Console,Utopia\Command→Utopia\Console\Command; same pattern (refactor(console)!: move Console and Command into Utopia\Console #14261, then releaseconsole/0.3.0) - Released
validators/2.0.0(old names aliased until 3.0.0) andconsole/0.3.0(until 0.4.0), plusservers/0.4.12,domains/4.4.0,queue/6.2.0andhttp/2.0.0-rc34so packages requiring validators^2.0resolve from Packagist - Remove the bare
Utopia\list from the root autoload with the last of the two (refactor(validators)!: move the base class into Utopia\Validator #14263: the bare entry is gone andBAREinbin/monorepois empty)
Phase 7: retire the old homes
- Archive
utopia-php/monorepo(after every retire PR, onlyconfig replication reputationremain): archivereplication, movereputationtoappwrite-labs/edgepackages/(decided 2026-10-08; its only pending consumer is the WAF Verdict lookup, appwrite-labs/cloud#5683, which pinsdev-feat/reputation; 0.1.0 is on Packagist). auth: OAuth2 clients, identity validators, and Phone calling codes utopia-php/monorepo#137 and Fix PT-BR Typo #167 closed with pointers here.fastlyretired in chore: retire fastly after its move to Edge utopia-php/monorepo#371;natsalready lives inpackages/ - Archive
abviewpreloaderanalytics(wave 5 audit; description marks them unmaintained) andasyncproxyfastly(README pointer to Edge) - Edge drops its
vcsentries forfeedwafcircuit-breakerabuse(appwrite-labs/edge#1554) - Edge moves off the archived
fetch: appwrite-labs/edge#1557 (production code), refactor(tests): build the e2e client on utopia-php/client open-runtimes/executor#261 (released 1.1.1), appwrite-labs/edge#1562 (client ^0.6,fetchdropped) -
client ^0.6inabuse3.1.0,feed1.3.0,span4.4.0,storage4.4.0,sdk-for-manager6.2.0 -
config2.x review follow-ups fix(config): close the review findings carried over from 2.0.8 #14235, releasedconfig/3.0.0 -
appwrite/clouddrops its ownutopia-php/*requirements and takes the classes throughserver-ce(onlymigrationis left; after wave 6)
Per-package checklist
For each package: absorb PR merged with a merge commit → Split run green and mirror tree identical to packages/<name> → retire PR on utopia-php/monorepo (monorepo-hosted only) → open PRs on the mirror closed with a pointer here.
- Decide
fetch: replace withclient - Decide
config: absorb 2.x intopackages/configand restore the registry onConfig(chore: absorb utopia-php/config into packages/config #14227) - Wave 1:
validatorsdiauthcacheschedulebalancerdetectorlocalequeryregistrydsnmqtt -
fetch→client(refactor: replace utopia-php/fetch with client #13893) -
config: absorb chore: absorb utopia-php/config into packages/config #14227 → release 2.1.0 → monorepo retire chore: retire config after its move to Appwrite utopia-php/monorepo#373 → Cloud appwrite-labs/cloud#6371 - Wave 2:
consolechore: absorb console into packages/console #13925,serverschore: absorb servers into packages/servers #13921,cdnchore: absorb cdn into packages/cdn #13923,domainschore: absorb domains into packages/domains #13922,storagechore: absorb storage into packages/storage #13926 (retired: chore: retire servers after its move to Appwrite utopia-php/monorepo#358-361, [Feature] - Overall file Upload Limit to File Storage Service in MBs (Appwrite Buckets) #363) - Wave 3:
httpchore: absorb http into packages/http #13930,clichore: absorb cli into packages/cli #13928,queuechore: absorb queue into packages/queue #13931,dnschore: absorb dns into packages/dns #13927,emailschore: absorb emails into packages/emails #13929,vcschore: absorb vcs into packages/vcs #13932 (retired: chore: retire http after its move to Appwrite utopia-php/monorepo#362, Create Kubernetes Operator #364-367) - Wave 4:
platformchore: absorb platform into packages/platform #13953,abusechore: absorb abuse into packages/abuse #13954,auditchore: absorb audit into packages/audit #13955 (also dropsfetch),usagechore: absorb usage into packages/usage #13956 (retired: chore: retire platform after its move to Appwrite utopia-php/monorepo#368, Force https #369) - Wave 5, Appwrite:
orchestrationchore: absorb orchestration into packages/orchestration #14054, releasedorchestration/0.20.1 - Move
logger's consumers to spans, then archive it (archived 2026-10-08): appwrite-labs/databases#349 ✅, appwrite-labs/pwned#13 ✅, refactor: report errors through utopia-php/span instead of utopia-php/logger docker-geo#9 ✅; open-runtimes/proxy archived - Wave 5, Cloud: split tooling appwrite-labs/cloud#6243 (
paysplit),cloudevents🐛 Bug Report: Can't create new user #6249,waf📚 Documentation: Manual execution JSON example in Cloud Functions is incorrect #6247,feed🐛 Bug Report: Malformed response when creating email session in Flutter #6250,testsfeat: package json #6253; all five mirrors split from Cloud - Register
waf,feed,mqtt,cdnon Packagist - Wave 5, Edge:
asyncappwrite-labs/edge#1523,fastly#1522 (retired: chore: retire fastly after its move to Edge utopia-php/monorepo#371),proxy#1524;asyncproxyfastlymirrors archived - Wave 6:
mongo+database, thenmigration, scheduled for next week in Absorb database, mongo and migration into packages/ (wave 6) #14255 (chore: absorb utopia-php/mongo and utopia-php/database into packages/ #14242 closed for now; branchchore/absorb-databasekept) - Phase 6 and 7 above
Before each wave, re-run the version comparison: bin/monorepo list against jq '.packages[] | select(.name|startswith("utopia-php/"))' composer.lock.
Open follow-up from the messaging chain
- Release client 0.6.0 (the aliases for the pre-0.5 names left
packages/clientin refactor(client)!: remove the aliases for the pre-0.5 names #13883)
Done: the messaging chain (psr7, smtp, telemetry, pools, client + span, messaging)
| Order | Package | Appwrite lock | Mirror head | State | Notes |
|---|---|---|---|---|---|
| done | psr7 |
0.2.1 | 0.2.1 | merged #13723 | |
| 1 | smtp |
0.2.0 (transitive) | 0.2.0 (7115e54) |
merged #13829 | zero Utopia and zero third-party requirements; was part of the closed batch #13721 and never re-landed |
| 2 | telemetry |
0.4.11 | 0.4.11 | merged #13731 | hoists nyholm/psr7, open-telemetry/*, symfony/http-client |
| 3 | pools |
2.1.2 | 2.1.2 | merged #13845 | needs telemetry; step A: src/Pools → src/, Utopia\Tests → Utopia\Pools\Tests |
| 4 | client + span |
0.4.4 / 4.2.0 | 0.5.0 / 4.2.0 | merged #13858 | client renamed and released as 0.5.0 first (utopia-php/monorepo#331); agents and span use the new names; old names aliased for the vendored consumers |
| 5 | messaging |
2.5.0 | 2.5.0 | merged #13863 | step A reshape; provider suites to tests/E2E/; moves to client ^0.5 names; push-protection bypass (used_in_tests) for a 2023 Twilio test credential in its history |
-
smtp: chore: absorb smtp into packages/smtp #13829 merged (32ea8b5); Split pushed8baa195; retired from the monorepo in chore: retire smtp after its move to Appwrite utopia-php/monorepo#322 -
telemetry: chore: absorb telemetry into packages/telemetry #13731 merged (7eab5f1); Split pushed81dcd88; retired in chore: retire telemetry after its move to Appwrite utopia-php/monorepo#323. The Realtime e2e flake that blocked it is fixed on main by test(realtime): create documents outside the coroutine in the concurrent traffic test #13840 -
pools: chore: absorb pools into packages/pools #13845 merged (28b7197); Split pushed74fddc5; retired in chore: retire pools after its move to Appwrite utopia-php/monorepo#326. Also fixedbin/monorepo checkto install a package's own dependencies first -
clientrenamed first (RFC step B) in refactor(client)!: move Client and the streaming interface under Utopia\Client utopia-php/monorepo#331 and released asclient/0.5.0; chore: absorb client and span into packages/ #13850 closed in favour of this -
client+span: chore: absorb client and span into packages/ #13858 merged (008b5f9); Split pushed client7cea773, span3df719d, agents951c5f5; retired in chore: retire client and span after their move to Appwrite utopia-php/monorepo#338 -
messaging: chore: absorb messaging into packages/messaging #13863 merged (5238cbd); Split pushed894c283; retired in chore: retire messaging after its move to Appwrite utopia-php/monorepo#346; all 41 open PRs on the mirror closed with a pointer here - Released
client/0.5.1(guarded alias shim); moved the remaining consumers off client's pre-0.5 names (refactor(storage, domains, cdn, fastly): use client 0.5's names utopia-php/monorepo#347, refactor: use utopia-php/client 0.5's names utopia-php/usage#43, refactor: use utopia-php/client 0.5's names open-runtimes/sdk-for-php#18); released storage 4.3.0, domains 4.3.0, cdn 0.0.13, fastly 0.2.1, usage 0.16.6, sdk-for-php 2.1.0; Appwrite bump and alias removal in refactor(client)!: remove the aliases for the pre-0.5 names #13883
Absorbed outside this chain: lock #13718, bus #13715, system #13804, compression #13798, user-agent #13862, openapi #13865, image #13867, circuit-breaker #13869, websocket #13870.
Refs: #13700 (RFC), #13803 and #13797 (single-package absorbs used as the template).
Activity
[-]Absorb messaging into packages/messaging, starting with the smtp leaf[/-][+]Absorb the remaining Utopia libraries into packages/[/+]nk0273926 commentedon Sep 29, 2026
I’d like to work on this issue. I can help with the migration of one of the remaining
utopia-php/*packages intopackages/<name>following the existing absorb workflow and dependency order.I’ll first verify the package structure, dependencies, and required changes before opening a PR.
docs: point to the package's new home before archiving
docs: point to the package's new home before archiving
docs: point to the package's new home before archiving
docs: point to the package's new home before archiving (#2)
refactor: report errors through utopia-php/span instead of utopia-php…
ChiragAgg5k commentedon Oct 5, 2026
Child PRs for this theme:
refactor: load config from packages/
ChiragAgg5k commentedon Oct 8, 2026
Released in cloud 1.50.146 (appwrite-labs/cloud#6371, server-ce with #14227) and cloud 1.50.149 (server-ce bump appwrite-labs/cloud#6391 contains #14235).
refactor: use Utopia\Validator\Validator everywhere
refactor(console)!: move Console and Command into Utopia\Console