sasogu / simple-quiz

A simple quiz written in PHP with a MySQL backend. Uses Bootstrap 3 and Slim PHP micro framework

Home Page:quiz.elanman.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Simple-Quiz is a simple framework for creating quizzes for the web, created and maintained by Ben Hall.

PHP version > 5.3.7 is required

Quick start

Three quick start options are available:

What's included

Within the download you'll find the following directories and files:

/
├── SimpleQuiz/
│   ├── Utils/
│       ├── Base/
│       │   ├── Config.php
│       │   ├── DB.php
│       │   ├── LeaderBoardInterface.php
│       │   ├── QuizInterface.php
│       │   ├── SessionInterface.php
│       │   ├── SimpleInterface.php
│       │   └── setup.php
│       ├── LeaderBoard.php
│       ├── Quiz.php
│       ├── Session.php
│       └── Simple.php
├── public/ (**this is your document root**)
│   ├── images/
│   ├── res/
│   │    ├── bootstrap/
│   │    ├── css/
│   │    ├── js/
│   ├── .htaccess
│   └── index.php
├── routes/
├── templates/
└── vendor/

Installation

  • Get The Code If you are downloading from SourceForge, you don't need to have composer installed to add the project dependencies as they are bundled with the project. If, however, you are cloning from GitHub, you must run composer install to get the latest changes as new dependencies are being added all the time and the vendor directory is no longer in version control.
  • Unpack the 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) 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.
  • Change credentials in /SimpleQuiz/Utils/Base/Config.php to suit.
  • Default web admin user is example@gmail.com 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.

About

A simple quiz written in PHP with a MySQL backend. Uses Bootstrap 3 and Slim PHP micro framework

quiz.elanman.com

License:Apache License 2.0