All projects
Learning technology In development Moodle 4.5 plugins

Moodle plugin for Capabl

Two Moodle plugins that let a site import Capabl training sessions, publish them in a catalogue and add them to any course as an activity. Learners launch the session from Moodle and are registered and signed in on the way.

Capabl is the enterprise learning platform I implement for customers in my consulting work. The plugins are an independent integration built on its public APIs.

Illustration
Role
Design and development (solo)
For
Moodle administrators and course editors
Status
Alpha 0.1.0, in testing
Built with
  • PHP
  • Moodle 4.5 APIs
  • Mustache templates
  • AMD JavaScript
  • Capabl REST APIs
  • PHPUnit
How it works

From the Capabl catalogue to a Moodle course

Before these plugins, a Moodle course had no way to include a Capabl session. Now it takes five steps across two plugins: local_ckls runs the catalogue and the launch, mod_ckls is the activity.

  1. Site admin Search Capabl By title or code, through the API
  2. Site admin Import Sessions arrive hidden in the library
  3. Site admin Publish Selected sessions join the site catalogue
  4. Course editor Add to a course A Capabl Training Course activity, like any other
  5. Learner Launch Registered and signed in with SSO
What I built

A catalogue for admins, an activity for course editors

Some organisations run Moodle for their own courses and Capabl for its training catalogue. Course editors wanted to place a Capabl session inside a Moodle course, next to their own activities. The integration is split into two plugins, so each audience gets its own tool:

  • Capabl Catalogue (local_ckls): an admin library to search Capabl, import sessions, publish them to a site catalogue, test the connection and sync. Imports stay hidden until they are published, and a session can’t be removed while an activity uses it.
  • Capabl Training Course (mod_ckls): an activity that course editors add like any other. They pick a published course and session, then choose how it looks on the course page: a vertical card, a horizontal card, a compact row or a plain link.
  • Launch flow: when a learner opens the activity, the plugin finds or creates their Capabl account, registers them to the session and sends them in through an SSO link.

How it was built

Capabl catalogues are large, so a full import on every sync would be slow and fragile. The import is search-first instead: find a course by title or code, then fetch its sessions on demand. The plugins combine the Capabl v1 API (search, sessions, registration) with the v2 API (course details, learners). Search, import, sync and launch are separate services, each with its own PHPUnit tests.

Results

Where it stands

  • Alpha 0.1.0 installs on Moodle 4.5 and runs the full chain: search, import, publish, add to a course and launch.
  • Nineteen PHPUnit test files cover the API endpoints, the launch gate, catalogue sync, publishing and the activity form.
  • A command-line script checks the search and import chain against a real Capabl catalogue.
What’s next

Finish testing the alpha release, then publish a first stable version.