This guide is for ILIAS administrators and tutors. The plugin adds the “Virtualbadge.io” object to ILIAS. You place it in a course and link it to a template in Virtualbadge.io. When course members meet the condition, ILIAS issues the certificate or badge in the background and shows the link in the object. You keep setting the design, fields and email of the template in Virtualbadge.io, for example in the designer.
| Item | Requirement |
|---|---|
| ILIAS | Version 10 with PHP 8.2 to 8.3 or version 11 with PHP 8.3 to 8.4 |
| PHP extensions | curl, sodium, mbstring and json, which ILIAS requires anyway |
| Operation | The ILIAS cron job runs, ideally every minute. Learning progress is enabled |
| Network | Outbound HTTPS connection to api.virtualbadge.io, port 443. No inbound firewall rules are needed |
| Virtualbadge.io | An organization with API access, at least one active template, enough credits |
Step 1: Install the plugin on the ILIAS server
Download the ZIP file for your ILIAS version.
The Virtualbadge.io plugin for ILIAS: version 1.0.1, as a ZIP file for ILIAS 11 or ILIAS 10.
Unpack it on the server into the ILIAS directory public/Customizing/global/plugins/Services/Repository/RepositoryObject. The folder “Virtualbadge” then contains the file plugin.php. Alternatively, your IT team gets the plugin with git, from the branch release_11 for ILIAS 11 or release_10 for ILIAS 10.
In the ILIAS root directory, your IT team then rebuilds the autoloader as the web server user and installs and activates the plugin, as in the example below. Instead of the last command, you can also set up the plugin in ILIAS under “Administration”, “Extending ILIAS” and “Plugins” with “Install” and “Activate”.
# With git, here for ILIAS 11, in the ILIAS root directory:mkdir -p public/Customizing/global/plugins/Services/Repository/RepositoryObjectgit clone -b release_11 https://github.com/Virtualbadge-io/ilias-plugin \ public/Customizing/global/plugins/Services/Repository/RepositoryObject/Virtualbadge # Then, also after unpacking the ZIP file:composer dump-autoload --no-devphp cli/setup.php update --legacy-plugin=Virtualbadge
An update works the same way: put the new files in place, then run the same commands. Before you upgrade ILIAS to a new major version, switch the plugin to the matching branch or ZIP file.
Step 2: Enter the API key and test the connection
You create the key in Virtualbadge.io: open “Settings” and “Integrations” and click “Generate token” under “API Access”. Virtualbadge.io calls the key a token, the plugin calls it “API key”. The guide to the REST API shows the place.
In ILIAS, open “Administration”, “Extending ILIAS” and “Plugins” and choose the action “Configure” for the plugin “Virtualbadge”. Enter the token under “API key” and save. ILIAS stores it encrypted and afterwards only shows the note “A key is stored.”
Click “Test connection”. The message names the organization and the number of its active templates. Leave “API address” at https://api.virtualbadge.io. “Calls per hour” limits the calls per key; the default is 200. Enter the limit agreed with Virtualbadge.io for your organization. “Date format” sets how dates appear in the template fields. The default is the format 31.12.2026, that is day, month, year.
Treat the key like a password. It has the rights of your organization in Virtualbadge.io. If it may have fallen into the wrong hands, generate a new token in Virtualbadge.io and enter it in ILIAS. The file the plugin uses to encrypt the keys is stored in the client data directory under xvbd/secret.key, outside the web root. If it is lost, enter the keys again.
Step 3: Check cron jobs, learning progress and permissions
The plugin sends the certificates in the background through the ILIAS cron job. Under “Administration”, “System Settings and Maintenance” and “General Settings”, check in the “Cron Jobs” tab that both jobs of the plugin are active: “Virtualbadge.io: issue certificates” runs every minute, “Virtualbadge.io: check issued certificates” every hour.
The ILIAS cron job must run on the server, ideally every minute: with the command php cli/cron.php run-jobs, a user and the client of your installation. If it does not run, nothing is sent. Course members then keep seeing “Being issued”.
The triggers use the learning progress of courses and objects. It must be enabled in the administration under “Statistics and Learning Progress”.
On its first activation, the plugin gave the new object permissions in the role templates and in the local roles of existing courses and groups. The table shows them. Roles that already had settings for the object, and your later changes, are left alone.
| Role | Permissions on the “Virtualbadge.io” object |
|---|---|
| “Course Administrator”, “Group Administrator” and the role template “Author” | All permissions, including create in courses, groups and folders |
| “Course Tutor” | Visible, read, write for the status list, copy, create in courses and folders |
| “Course Member”, “Group Member” and the global role “User” | Visible and read, that is, see their own certificate |
| Role template “Local Administrator” | Visible, delete, edit permissions |
Step 4: Add the “Virtualbadge.io” object to the course
Open the course and choose “Add New Object”, then “Virtualbadge.io”. Enter a title, for example “Certificate Data protection training”, and click “Add Virtualbadge.io”. Course members see the object in the course under this title.
ILIAS then opens the object's “Settings” tab. The object may also sit in a group or folder inside the course. Only members of the course receive certificates, not its tutors or administrators.
If the object says that the API key is not configured, step 2 is still missing.
Step 5: Choose the template and the trigger
In the “Certificate or badge” section, “Organisation” shows the organization that applies to the course's category, usually the “Main organisation”. Below it, choose the template under “Template”. The list shows the active templates of this organization, each marked certificate or badge. If you have just created or changed a template, “Reload templates” loads the list again.
Under “Issue on” you decide when ILIAS issues. There are four triggers, and the table shows what they do. For “Completion of an object”, also choose the object under “Object”, for example the final test.
“Email from Virtualbadge.io” is on unless you change it: Virtualbadge.io then sends an email with the link to the certificate. Without the checkmark, course members see the link in ILIAS only. You set the text and sender of the email in Virtualbadge.io.
With “Learning progress: completed when issued”, the object counts as completed in the learning progress once the certificate has been issued. If the object then counts toward the course's learning progress and the trigger is “Course completion”, ILIAS issues as soon as all other objects are completed. Save the settings.
| Trigger | Behavior | Good for |
|---|---|---|
| “Course completion” | As soon as the learning progress of the course has the status “Completed” for the person | Mandatory online training |
| “Course completion, after release by a tutor” | The status list shows “Condition met on …”. The certificate is issued only after “Release” or “Release all …”. It carries the date of course completion | A certificate a tutor checks first |
| “Completion of an object” | As soon as the chosen object is completed, for example the final test. For tests optionally with “Minimum result (%)”: the certificate is issued as soon as the scored result reaches the value, even if the test is not passed. Without a value, the passed test counts | A badge for a passed knowledge test |
| “Manual release by a tutor” | Only after “Release” in the status list, without a condition. The certificate carries the date of the release | Classroom events |
Several objects in one course are possible, for example a badge right after the test and a certificate after release. See the example under Mandatory training with a badge and a certificate.
Step 6: Map the template fields
After saving, the text fields of the template appear below the settings, each as “Template field” with its name. Under “Value from” you choose where the value comes from. The plugin suggests a source that matches the field's name, for example “City” for a field called “City”. The table lists all sources.
For “Fixed text”, enter a text that is the same for everyone. Placeholders such as {fullname}, {course} or {completiondate} are possible; the list is shown below the field. The plugin always sends the full name and email address as the recipient, so they need no mapping.
The name on the certificate and the source “Full name (with academic title)” follow ILIAS, for example “Dr. Lena Hoffmann”. ILIAS reads the values only when it sends the certificate, so a reissue uses the current data. Save the mapping.
| Source | Examples | Value |
|---|---|---|
| “Fixed text” | “2 teaching units” or “{course} on {completiondate}” | The same for everyone, placeholders are possible |
| “Participant” | “First name”, “Last name”, “Full name (with academic title)”, “Academic title”, “Email”, “Login”, “Matriculation number”, “Institution”, “Department”, “City”, “Country” and custom user fields allowed for certificates | Per person, from the profile |
| “Course” | “Course title”, “Course description”, “Category”, “Course start”, “Course end” | From the course settings |
| “Course metadata” | Every custom metadata field of the course, for example continuing education points | From the course's “Metadata” tab, see Course data on the certificate |
| “Completion” | “Completion date”, “Test result (%)”, “Test result (points)”, “Maximum points of the test” | From the learning progress or the test |
Every mapped value must be filled in. If it is empty, for example the city in the profile or the course end, ILIAS issues nothing for this person and names the field and the source in the status list. So only map sources that every course member and the course have, the academic title for example only if everyone has one. Fixed text is not checked.
Step 7: Check with a test person
Add a test account to the course as a member and meet the condition with it: complete the course, pass the test or have it released. Only course members trigger issuing. If a tutor completes the course as a trial, nothing happens.
ILIAS issues in the background. At first the object says “Your certificate is being created. The link will appear here shortly.” The certificate is usually issued after one to two minutes. The test person then sees “Open certificate”, with download and sharing, and “Validation page” for the public validation page. Both open in a new tab. For a badge, the first button reads “Open badge”.
Every issue uses one credit, in a test as well.
For a trial run without real credentials, use an ILIAS test installation and a sandbox organization in Virtualbadge.io with its own token. Credentials from the sandbox are marked as tests.
Step 8: Use the status list: release, resend, reissue
Tutors see an “Overview” in the “Certificate” tab and below it all course members with their status. Depending on the trigger, you release there with “Release”, one by one or for several selected people. If several people have completed the course, “Release all …” issues to all of them. The certificates go out within a few minutes.
If you added the object to a running course, a message above the list says how many course members already meet the condition. “Issue to … participants” in that message gives them their certificate retroactively.
If the email did not arrive, “Send email again” helps. If the name or course data are wrong, correct them in ILIAS and then choose “Issue again”: a new certificate with the current data is created, and the old one becomes invalid in Virtualbadge.io. All statuses and actions are listed under Status list: statuses and actions.
Follow this guide with your own data.
Check the result
- “Test connection” reports that the connection works and names the number of active templates.
- The test person sees “Open certificate” and “Validation page” in the object.
- The status list shows “Issued” for the test person.
- The person appears in Virtualbadge.io in the template's list of recipients.
More on this: Integrations
Example: mandatory training with a badge and a certificate
A course “Data protection training 2026” consists of a content page and a test, passed from 80 percent. The course counts as completed once the page and the test are completed. Two objects award a badge and a certificate. The illustration in step 6 shows the certificate.
| Setting | Badge | Certificate |
|---|---|---|
| Template in Virtualbadge.io | Fields for course and result | Fields for staff number, date, course, teaching units and trainer |
| Sources in ILIAS | “Course title” and “Test result (%)” | A custom user field, “Completion date”, “Course title” and two course metadata fields |
| Trigger | “Completion of an object” with the test and “Minimum result (%)” 80 | “Course completion, after release by a tutor” |
| Result | Right after the test, for example with 90 percent | After “Release”, with the date of course completion |
With “Minimum result (%)” you award a badge of its own for each test: one object per test, each with the trigger “Completion of an object”.
Course data on the certificate: custom metadata
You bring a course's own data, such as continuing education points, a course number or the venue, onto the certificate with the custom metadata of ILIAS.
| Who | Where | What |
|---|---|---|
| Administrator | Metadata administration, “Custom Metadata” tab | Create a record for the object type course, add fields and activate the record. A record limited to certain categories only applies to courses below them |
| Course | The course's “Metadata” tab | Fill in the fields. Records created in the course itself only count if the course has custom metadata switched on. Optional records must be selected there |
| Tutor | “Settings” tab of the “Virtualbadge.io” object | Map a template field to a source of the group “Course metadata”, or use the placeholder {coursefield:ID} in fixed text. The course's placeholders are listed above the field mapping |
| Field type | Text on the certificate |
|---|---|
| Text, integer | As entered, without a unit |
| Float | With the configured number of decimals and the decimal separator of the ILIAS default language, without a unit |
| Date, date and time | In the plugin's date format, date only |
| Select, multi-select | The option label in the record's default language, several separated by commas |
| External link | The address, with a title as “title (address)” |
| Internal link | The title of the linked object |
| Location, address | The text ILIAS shows, without formatting |
If a mapped field is no longer available in the course, for example because the record was deactivated or the course was copied to a place where the record does not apply, the object shows a warning naming the affected template fields. Until you choose another source, such certificates end with an error instead of an empty value.
Status list: statuses and actions
Above the list, the “Overview” shows how many course members have their certificate, how many are being issued, where something “Needs attention” and who has not yet met the condition. For each person the list shows “Status detail”, “Condition”, “Issued” and “Latest error”.
| Status | Meaning |
|---|---|
| “Not issued” | Condition not met yet |
| “Queued” | Will be sent within a minute |
| “Being created” | Created in Virtualbadge.io, the document is being generated. Usually changes to “Issued” within a minute |
| “Issued” | Issued, the link is shown in the object |
| “Retrying” | Virtualbadge.io was briefly not reachable or the hourly limit is reached. ILIAS tries again by itself |
| “Error” | Not issued. The reason is shown under “Latest error” |
| “Revoked” | Revoked or replaced in Virtualbadge.io |
| “Deleted in Virtualbadge.io” | Deleted in the Virtualbadge.io admin panel. The link no longer works |
| Action | When | Effect |
|---|---|---|
| “Release” | Manual release, or the condition is met and the trigger asks for a release | Issues the certificate, also for several selected people |
| “Release all …” | A trigger with release, several people have completed the course. The button names their number | Issues to everyone who has completed the course |
| “Retry issuing” | Status “Error” or “Deleted in Virtualbadge.io” | A new attempt, for example after a missing value has been filled in. If a new certificate is created, it uses one credit |
| “Send email again” | Status “Issued” | Virtualbadge.io sends the email once more to the original address. No new certificate, no credit, at most ten times |
| “Issue again” | Status “Issued” | A new certificate with the current data from ILIAS, the old one becomes invalid in Virtualbadge.io. Uses one credit; ILIAS asks for confirmation first |
“Issue again” needs changed data. If the name, email address and all field values are unchanged, the current certificate stays valid, the list reports “Not issued again” and no credit is used. If the email address has changed, enter the new address in the profile and choose “Issue again”. “Send email again” always uses the original address.
ILIAS checks issued certificates against Virtualbadge.io once a day. If a certificate is revoked or replaced there, the status list shows it. ILIAS takes over a replaced certificate with its new link.
If no certificate is issued
| What you see | What to do |
|---|---|
| The person is missing from the list, or there is no “Condition met on …” | Only course members are listed. Check the learning progress of the course or of the chosen object |
| “Error” saying that a field is empty for this user | Fill in the profile field or map another source, then “Retry issuing” |
| “Error” saying that a field is empty in this course | Fill in the course settings or metadata, then “Retry issuing” |
| A message that the template has fields that are not mapped | Map the new fields as described in the note below, then “Retry issuing” |
| “Virtualbadge.io could not create the certificate.” | Check the template and the organization's credits in Virtualbadge.io, then “Retry issuing”. This creates a new certificate |
| “Retrying” with a note on the hourly limit | Nothing. The certificate goes out by itself within the next hour |
| “Error” because the API key is missing or was rejected | Check the plugin configuration and click “Test connection” |
| Test result below the minimum result | After a better attempt, ILIAS issues by itself |
If Virtualbadge.io is not reachable, the list shows “Retrying”. ILIAS tries up to ten times over about 16 hours, then the status changes to “Error”.
Course members without an email address or without read permission on the object receive nothing. Administrators find them in the ILIAS log under “Virtualbadge.io certificate not issued”, with the reason. All log entries of the plugin start with “Virtualbadge.io”.
If the object reports that the template has fields that are not mapped here, fields were added in Virtualbadge.io. Until they are mapped, the object issues nothing. Open “Settings”, click “Reload templates”, map the new fields and save. Then catch up on the affected certificates with “Retry issuing”.
Report bugs in the plugin in the issue tracker on GitHub. Include the ILIAS version, the plugin version and the message from the status list or the log.
Privacy and operation
To issue a certificate, the plugin sends the full name, email address, issue date, the values of the mapped fields and a technical reference to Virtualbadge.io. In ILIAS it stores per person and object the status, the links to the certificate and validation page and the times of completion and issue. When an ILIAS account is deleted, the plugin deletes these records as well.
ILIAS always opens the connection itself; Virtualbadge.io never calls ILIAS. Learning progress does not wait for Virtualbadge.io. The reference per issue prevents duplicate certificates, even if a connection breaks.
Uninstall the plugin under “Administration”, “Extending ILIAS” and “Plugins” while it is still active. If it is already deactivated, activate it again first. ILIAS then deletes all “Virtualbadge.io” objects, the plugin's tables and settings and the key file. Your IT team then removes the plugin directory.
Deleting data in ILIAS or uninstalling the plugin does not revoke any certificates. They stay valid until you revoke them in Virtualbadge.io.
Frequently asked questions
Which ILIAS versions does the plugin work with?
ILIAS 10 and ILIAS 11. For ILIAS 10 there is the branch release_10 and a ZIP file of its own, with PHP 8.2 to 8.3. For ILIAS 11 it is the branch release_11, with PHP 8.3 to 8.4. A version for ILIAS 12 is planned. This guide describes version 1.0.1 of the plugin.
What does the plugin cost?
The plugin itself is free and published under the GPL-3.0 license on GitHub. To issue, you need an organization in Virtualbadge.io with API access. The plans are on the pricing page.
Does every issue use a credit?
Yes. Every issue and every reissue with “Issue again” uses one credit. Sending the email again uses none.
Can one course award a badge and a certificate?
Yes. Add two objects, each with its own template and trigger: for example a badge from 80 percent in the final test and a certificate after course completion.
Do course members who already meet the condition get a certificate retroactively?
Yes. If you add the object to a running course, the status list names the number of these people. “Issue to … participants” issues to them retroactively.
What happens if Virtualbadge.io is briefly not reachable?
Learning progress in ILIAS carries on as normal. The status list shows “Retrying”, ILIAS tries up to ten times by itself and issues nothing twice.
Can several organizations issue from one ILIAS installation?
Yes. In the plugin configuration, add further organizations under “Organisations”, one per line as key and name, for example hr|Human Resources. After saving, each gets a field of its own for the API key. Under “Categories” you map ILIAS categories to an organization. A course uses the mapping of its category or the nearest parent category, otherwise the main organization. Tutors only issue with the organization of their course.
What happens when I copy a course?
ILIAS copies the object's settings and field mapping, but no certificates. If an object was chosen as the trigger, choose it again in the copy.
Does this work without the plugin?
Yes. From other systems you issue with Zapier or the REST API, and for single course groups with a CSV list. For Moodle there is a plugin of its own.