Skip to content
A small quiz app written in PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
layouts
locale
.gitignore
.htaccess
404.php
Features.md
README.md
elements.php
html.php
index.php
locale.php
page.php
parser.php
questions.config
root.php
template.html

README.md

php-quiz-app

A small quiz app written in PHP

Editing

You can edit the template.html like you want but keep it in Bootstrap style and add the id="inside" property to the element where the HTML should be written

Usage

To use it just call it with the UUID located in ./uuid: /?uuid=1

questions.config

The questions.config has a simple syntax:

Lines with * start a new quiz

Characters after | are the id

~ defines the Callback (CLI) ($UUID and $DATA are being replaced)

$ settings max. errors|max. errors per question

; = Start a new Question

? = splits question and answers

| = new answer

} = this answer is true (can be multiple choise)

Example:

*Quiz Title|ID
;Question?answer1|answer2}|answer3
~echo "$DATA" > ./completed$UUID
$ 2|5

##UUID System To create a UUID simply write the following in a file located in ./uuid

Empty Line
QuizID
additional data (string)

Example:


1
testuser
You can’t perform that action at this time.