This tool allows create special formatted file with questions for import to LMS moodle.
composer require pqmtool/pqmtool
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:
- question text
- answer variant n
- Answer: 1
Note: answer for this question supports only numbers.
Shortanswer question format:
- question text
- Answer: your answer
Note: You can list the answers separated by commas.
vendor/bin/pqmtool input_file.txt output_file.xml