fcosrno / exam-php

PHP library to create, display, and grade exams.
MIT License
38 stars 7 forks source link

Feature to compare user submitted answers against correct answers #2

Open rexixuel opened 6 years ago

rexixuel commented 6 years ago

Hi!

I've used this PHP library as part of my commissioned project for an online assessment tool. I thought that it could use a feature wherein users can compare their submitted answers against the correct answers. This feature can allow the users to review their answers and check what questions they got wrong and right.

I've already built a separate class based on this library and was wondering if you are still interested to integrate this with exam-php library. The project is more than 4 years old, but I believe that this could be a helpful improvement, considering how simple and easy the library is to use. I would like to know if there are any coding standards I need to follow to implement this,

The class could be called thru the exam-php by using this syntax:

$exam = new Exam(); print $exam->generateHtmlResults($myAnswers);

Thank you!

fcosrno commented 6 years ago

Great! I'll give it some thought and get back to you. Thanks for getting in touch.

rexixuel commented 6 years ago

@fcosrno thanks for the reply! Let me know if you're interested and I can make the pull request.

Thanks!