/pqmtool

Parsing questions tool for LMS Moodle

Primary LanguagePHPMIT LicenseMIT

Tool for convert questions for LMS Moodle from text to xml format.

This tool allows create special formatted file with questions for import to LMS moodle.

Install:

composer require pqmtool/pqmtool

How to use:

First of all, you need text file with questions in special format.
At this moment this tool supports the following questions:

  • Multichoice question
  • Shortanswer question

Multichoice question format:

  1. question text
  2. answer variant n
  3. Answer: 1

Note: answer for this question supports only numbers.

Shortanswer question format:

  1. question text
  2. Answer: your answer

Note: You can list the answers separated by commas.

Usage (CLI in project directory):

vendor/bin/pqmtool input_file.txt output_file.xml