Moodle Plugin for creating and issuing digital credentials.
To install this plugin, follow these steps:
-
Navigate to the
localplugin folder of your Moodle system. -
Clone the repository using the following command:
git clone https://github.com/ild-thl/moodle-local_isycredentials.git isycredentials
-
Install the plugin's Composer dependencies:
cd isycredentials composer install --no-dev -
Complete the installation through the Moodle plugin management interface.
This plugin uses CSC qualified signing with DSS orchestration. These services
can be run using Docker and the following docker-compose configuration:
# Digital Signature Service
dss:
build:
context: ../dss
dockerfile: Dockerfile
args:
DSS_VERSION: "6.5"
JAVA_VERSION: "26"
restart: unless-stopped
php vendor/bin/phpunit local/isycredentials/tests/badge_credential_mapper_test.php
- "8080"php vendor/bin/phpunit local/isycredentials/tests/badge_credential_mapper_test.php runs directly on the host, in Docker, in Podman, or in another environment. The PHP CLI, Composer dependencies, and the Moodle test database must be available in that environment.
cd /path/to/moodle
php admin/tool/phpunit/cli/init.phpInitialise the PHPUnit environment first, or repeat the initialisation when Moodle reports that the environment was created for a different Moodle version. Then run the credential plugin test cases:
php vendor/bin/phpunit local/isycredentials/tests/badge_credential_mapper_test.phpRun one test file individually when working on a specific area:
php vendor/bin/phpunit local/isycredentials/tests/badge_credential_mapper_test.php