Moodle 6.0 architecture watch: LTI into core, \curl to Guzzle

Moodle HQ is moving LTI out of mod_lti into core in eight slices and replacing its old \curl class with Guzzle. What the tracker says, what it changes for plugins, and what it says about how HQ works now.

Drawing of a person on a ladder sliding a large blue box onto a steel shelving unit that already holds grey boxes, with loose cables coiled on the floor.

Two old parts of Moodle are being taken apart in the open this month. LTI, the standard that lets Moodle launch outside tools, is moving out of the mod_lti activity and into a core subsystem called core_ltix. And Moodle’s own HTTP class, \curl, which almost every plugin that talks to the internet uses, is being deprecated in favour of \core\http_client, a wrapper around the PHP library Guzzle.

Neither change is finished, and neither has a fix version yet. The LTI work is targeted at Moodle 6.0, which the tracker plans for 19 April 2027.1 The \curl plan is to deprecate early on main and remove it in a later major release. Here is what the tracker says, what it means for plugin code, and why the way HQ is doing the LTI move is worth noticing.

Why move LTI out of mod_lti?

Today all of Moodle’s LTI code lives in one activity plugin. That made sense in 2011, when an LTI tool was something a teacher added to a course page as an activity. It does not fit how LTI is used now, where tools want to appear in the text editor, in assignment feedback, on the course page and in other places.

The parent epic, MDL-79109, was opened in August 2023 and states the problem plainly: with all LTI code inside mod_lti, it is hard to extend LTI to “new placements within Moodle”.2 The plan is a core LTI API that any component, such as an editor or a module form, can ask for placement information.

How is HQ doing it?

On 30 October 2026, eight epics were filed that cut MDL-79109 into slices. Each slice lands in main on its own, and each must pass a fresh install, an upgrade from 5.3, PHPUnit and Behat before it goes in.3

SliceWhat it carriesVisible change
0Characterisation tests of current LTI behaviour, and the bugs they findNone
1The core_ltix subsystem; mod_lti tables, admin pages and endpoints move into itURLs change from /mod/lti/ to /ltix/
2Resource links table and API, privacy provider, backup and restoreNone
3aResource link manager; Basic Outcomes no longer depends on a mod_lti instanceNone
3bDeep linking API and the backend of the placement frameworkNone
4aNew launch architecture, added next to the old oneNone
4bEvery launch switched to the new pathEvery launch on every site
5Placement settings and course-level controlThe only slice users see

Slice 4a is described as “the last slice in 6.0”. Slice 4b, the switch that changes every launch, is planned for “early in the 6.1 cycle, so it has time to soak”.3 So 6.0 gets the new structure, and the risky part waits for a release with more time.

Tests first, then moves

Slice 0 is the part we like most. Before moving anything, the team writes characterisation tests: tests that record what LTI does today, right or wrong, so every later slice can prove it changed nothing it should not have. The epic lists what they cover: launch data, LTI 1.3 authentication and deep linking, grade services, the activity chooser, tool deletion, backup and restore.3 Bugs found while writing them are fixed through the normal bug process, with backports.

This is the method anyone working with AI coding agents ends up at. You can let an agent move a thousand files only if a test suite tells you, in minutes, whether behaviour changed. Our post on Moodle HQ and AI-era development asked whether HQ uses tests as guardrails. For this project, the answer is yes, and it is written into the plan.

What changes for plugins that use LTI?

If you maintain a plugin that touches LTI, from the slice descriptions:3

  • ltiservice and ltisource subplugins are promoted to core plugin types, ltixservice and ltixsource. The old types are deprecated.
  • Old mod_lti functions, classes and external functions are deprecated, not removed, and compatibility stubs keep old names working for now. Deprecation notices in your logs will tell you what to move.
  • Admin and course tool pages move from /mod/lti/ to /ltix/. Bookmarks, documentation and any hard-coded links need updating.
  • The global LTI_* constants stay, but deprecated.
  • Backups made with mod_lti still restore, through a legacy restore shim.
  • Services stop depending on a mod_lti instance. Grade, membership and tool settings services move toward working with any placement, not just an activity.

Slice 3b also mentions two access checks found by an audit: a line item or score must belong to the course of the request, and an unknown line item or link ID now returns a clean 404.3 If your tool relied on looser behaviour, test it against main when slice 3b lands.

Why replace \curl?

Moodle’s \curl class in lib/filelib.php dates from long before Composer and PSR standards. Moodle has had \core\http_client, a subclass of Guzzle’s client, for several releases, and newer subsystems such as Communication, MoodleNet sharing and AI already use it.4 Its first middleware checks Moodle’s blocked hosts list, and it replaces Guzzle’s redirect handler with one that checks the list again, so it keeps the same SSRF protection the old class had.5

Epic MDL-86274, opened in August 2025 and updated on 18 November 2026, sets out the plan:4

  • deprecate \curl and \curl_cache on main “as early as possible”, and tell partners and the community early
  • replace every direct use in core with \core\http_client
  • rewrite \curl as a thin wrapper over Guzzle, so all requests go through one stack even while old code runs
  • add a Guzzle-based OAuth 2 client, then deprecate \oauth2_client and \core\oauth2\client, and remove them together with \curl “in a single major release, likely after the policy minimum”

Eleven child issues were open on 18 November, from the repository base class and the Dropbox and Nextcloud repositories to badges and the iCal import. Three were waiting for peer review.6 On our 5.3+ checkout, a search for new \curl or new curl( outside test folders found 37 files in core.

What should plugin authors do now?

Nothing breaks yet. The removal is a major release away, and the policy gives deprecated code time. But:

  • New code should use \core\http_client today. It is already in 5.3, it supports mocks in PHPUnit through a mock handler option, and it is where core is going.
  • List your \curl calls, including download_file_content() and repository or OAuth 2 code. Plugins that extend \oauth2_client or \core\oauth2\client have the most work, because that whole layer is being replaced.
  • Watch for the deprecation notice on main. That is the clock starting.

The other epics worth watching

Three more tracker items moved this month:

  • OAuth 2 for the REST API (MDL-87215) is in development: machine-to-machine and user-to-machine flows, refresh tokens, revocation and scope checks.7 A sibling epic for managing OAuth 2 clients through the REST API itself (MDL-90364) was filed on 3 November.
  • A JavaScript forms foundation (MDL-90640) was filed on 18 November: updated libraries and a “forms engine” for JavaScript forms in core.8 Moodle’s forms have been server-rendered PHP (moodleform) since Moodle 1.8 in 2007. It fits the React work since 5.2.
  • Make the AI subsystem extendable (MDL-89121), still open: third-party plugins would be able to add their own AI actions and placements.9 Today plugins can add providers and placements, but only for the actions core ships. Our post on Moodle 5.3 AI covers what that limit means in practice.

What it adds up to

Our Moodle 5.3 review said the release finished layers that 4.3 to 5.2 started. The 6.0 work continues in the same direction: fewer special cases inside individual plugins, more shared core services with standard interfaces (a core LTI API, a PSR-style HTTP client, OAuth 2 on a REST API). It is slow, and LTI in core took three years to reach a slicing plan. But the plan is careful, and the tests come first.

For plugin owners, 6.0 is not one big break. It is a set of deprecations that start now and become errors later. The cheapest time to fix them is before the notices fill your logs. If you want a plugin checked against main before 6.0 ships, that is a job we quote at a fixed price.

Sources

  1. Moodle Tracker, MDL versions, 6.0 release date 19 April 2027. ↑

  2. Moodle Tracker, MDL-79109: Migrate the bulk of the mod_lti plugin to Moodle core. ↑

  3. Moodle Tracker, LTI in core slice epics filed 30 October 2026: MDL-90283 (slice 0), MDL-90284 (slice 1), MDL-90285 (slice 2), MDL-90286 (slice 3a), MDL-90287 (slice 3b), MDL-90288 (slice 4a), MDL-90289 (slice 4b) and MDL-90290 (slice 5). Read 18 November 2026. ↑ ↑ ↑ ↑ ↑

  4. Moodle Tracker, MDL-86274: Replace legacy \curl with \core\http_client (Guzzle). ↑ ↑

  5. Moodle source, public/lib/classes/http_client.php and public/lib/classes/local/guzzle/check_request.php, 5.3+ build of 30 October 2026. ↑

  6. Moodle Tracker, child issues of MDL-86274, for example MDL-85958 (deprecate \curl), MDL-90075 (\curl on Guzzle internally) and MDL-89986 (oauth2_client). Status on 18 November 2026. ↑

  7. Moodle Tracker, MDL-87215: Add support for OAuth2 for routed web services and MDL-90364. ↑

  8. Moodle Tracker, MDL-90640: JavaScript Form foundation. ↑

  9. Moodle Tracker, MDL-89121: Make AI subsystem extendable. ↑

Need a Moodle plugin built or rescued?

Tell the scoping assistant what you need. You get a fixed price and a timeline in a few minutes, and an engineer reviews it within one business day.

Get a fixed quote