Simple-Quiz
Simple-Quiz is a simple framework for creating quizzes for the web, created and maintained by Ben Hall.
PHP version > 5.4 is required
Quick start
Three quick start options are available:
- Download the latest release (github).
- Download the latest release (sourceforge).
- Clone the repo:
git clone https://github.com/elanman/simple-quiz.git
.
What's included
Within the download you'll find the following directories and files:
/
βββ SimpleQuiz/
β βββ Utils/
β β βββ Base/
β β β βββ SampleConfig.php
β β β βββ Installer.php
β β β βββ IQuestion.php
β β β βββ IQuiz.php
β β β βββ ISession.php
β β β βββ ISimple.php
β β β βββ User.php
β β β βββ setup.php
β β βββ Exceptions/
β β β βββ LoginException.php
β β β βββ RegisterException.php
β β βββ User/
β β β βββ AdminUser.php
β β β βββ EndUser.php
β β β βββ GuestUser.php
β β βββ LeaderBoard.php
β β βββ Quiz.php
β β βββ QuestionStorage.php
β β βββ Session.php
β β βββ Simple.php
β β βββ RadioQuestion.php
β βββ Tests/
β βββ Base/
β β βββ InstallerTest.php
β βββ QuizTest.php
βββ public/ (**this is your document root**)
β βββ images/
β β βββ ajax-loader.gif
β β βββ sq.png
β βββ res/
β β βββ bootstrap/
β β β βββ assets/
β β β βββ dist/
β β βββ css/
β β β βββ quiz.css
β β βββ js/
β β β βββ admin.js
β β β βββ form.js
β β β βββ general.js
β β β βββ login.js
β β β βββ start.js
β βββ .htaccess
β βββ index.php
βββ routes/
β βββ admin.php
β βββ public.php
βββ templates/
β βββ admin/
β β βββ editanswers.php
β β βββ footer.php
β β βββ header.php
β β βββ index.php
β β βββ login.php
β β βββ quiz.php
β βββ email/
β β βββ registerconfirm.html
β β βββ registerconfirm.txt
β βββ quiz/
β β βββ error.php
β β βββ footer.php
β β βββ header.php
β β βββ quiz.php
β β βββ results.php
β β βββ test.php
β βββ category.php
β βββ emailconfirmed.php
β βββ emailsent.php
β βββ index.php
β βββ login.php
β βββ requirements.php
βββ vendor/
βββ .gitignore
βββ .travis.yml
βββ composer.json
βββ composer.lock
βββ LICENSE
βββ phpunit.xml
βββ .gitignore
βββ README.md
βββ simple-quiz.sql
Installation
Get The Code.
- If you are downloading from SourceForge, all project dependencies are bundled with the project. If, however, you are cloning from GitHub or downloading the release zip file, you must run 'composer install' to download all of the dependencies.
- If you don't know what composer is, take a look here: Composer
- Unpack the downloaded code zip archive.
- Place the contents of the /public directory inside your document root.
- All other directories should be placed outside of the document root and not accessible via a web browser (look at the above diagram to see the structure).
- The mod_rewrite module (if using apache server) or URL Rewrite module (if using IIS) will need to be enabled in your server configuration.
- Create a MySQL database called 'simple-quiz'
- Import simple-quiz.sql into MySQL using a tool like phpmyadmin or using the MySQL 'source' command.
- Change credentials in /SimpleQuiz/Utils/Base/SampleConfig.php.
- Rename SampleConfig.php to Config.php
- Default web admin user is [email protected] with password of 123456
- Navigate to the web accessible folder in your browser.
Twitter Stuff
Authors
Ben Hall
Copyright and license
Copyright 2013 Ben Hall under the Apache 2.0 license.