PHPackages                             drajin/onlinetest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. drajin/onlinetest

ActiveProject[Utility &amp; Helpers](/categories/utility)

drajin/onlinetest
=================

The Application represents small SPA quiz, with user and admin side

1.01(4y ago)07MITPHP

Since Oct 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/drajin/onlinetest)[ Packagist](https://packagist.org/packages/drajin/onlinetest)[ RSS](/packages/drajin-onlinetest/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

[![Imgur](https://camo.githubusercontent.com/925194ce8eb18652b4a87d84a3e03dd922ed77fd321e72c5edfe9d14c3266790/68747470733a2f2f692e696d6775722e636f6d2f3259675058794d2e6a7067)](https://camo.githubusercontent.com/925194ce8eb18652b4a87d84a3e03dd922ed77fd321e72c5edfe9d14c3266790/68747470733a2f2f692e696d6775722e636f6d2f3259675058794d2e6a7067)

Table of contents
-----------------

[](#table-of-contents)

- [General info](#general-info)
- [Features](#features)
- [Screenshots](#screenshots)
- [Technologies](#technologies)
- [Sources](#Sources)
- [Setup](#setup)

General info
------------

[](#general-info)

This Application represents a quick quiz. On the user side it is single page application where the users are able to register and login, test their knowledge and check the results. On the Admin side, admins are able to login, and make CRUD operations on Users, Questions, Answers and Results. It was made for the learning purposes and out of enjoyment.

Features
--------

[](#features)

User side:

- SPA application
- Login and Register
- Questions with 2 or more answers
- Questions with one or more possible correct answers
- Questions are being displayed on various ways
- Every question is displayed single
- Session flash messages
- Random generated order of answers
- Outcome view
- History of Results view

Admin side:

- Login
- CRUD on users
- CRUD on questions and answers
- CRUD on results
- Change the number of answers in a single question
- Change the layout of the question
- Change the number of correct answers
- Change the results from different views
- Session flash messages

### Screenshots

[](#screenshots)

[![Imgur](https://camo.githubusercontent.com/7ac7cde25452bf2d2770d28a9a2e292535ec7bdc090034f9cdacb7cc7c9cfd9e/68747470733a2f2f692e696d6775722e636f6d2f4241756666366a2e6a7067)](https://camo.githubusercontent.com/7ac7cde25452bf2d2770d28a9a2e292535ec7bdc090034f9cdacb7cc7c9cfd9e/68747470733a2f2f692e696d6775722e636f6d2f4241756666366a2e6a7067)[![Imgur](https://camo.githubusercontent.com/ee522803c6c074d1f71653c38df565c251990bae506ae7ac077b040819ca62be/68747470733a2f2f692e696d6775722e636f6d2f774954323838732e6a7067)](https://camo.githubusercontent.com/ee522803c6c074d1f71653c38df565c251990bae506ae7ac077b040819ca62be/68747470733a2f2f692e696d6775722e636f6d2f774954323838732e6a7067)[![Imgur](https://camo.githubusercontent.com/dfa82f66c6f2d45ecfde5a60ec690f946a1eae5605448ec3885d1232b0c3dfc2/68747470733a2f2f692e696d6775722e636f6d2f5370336a7745642e6a7067)](https://camo.githubusercontent.com/dfa82f66c6f2d45ecfde5a60ec690f946a1eae5605448ec3885d1232b0c3dfc2/68747470733a2f2f692e696d6775722e636f6d2f5370336a7745642e6a7067)[![Imgur](https://camo.githubusercontent.com/038bdd52de9c687cb9effc9bdfb9684926be10bd82cec8a4e4dcfacfc2cfb0b5/68747470733a2f2f692e696d6775722e636f6d2f384278347237322e6a7067)](https://camo.githubusercontent.com/038bdd52de9c687cb9effc9bdfb9684926be10bd82cec8a4e4dcfacfc2cfb0b5/68747470733a2f2f692e696d6775722e636f6d2f384278347237322e6a7067)Technologies
------------

[](#technologies)

Application is created with:

- PHP Version 8.0.2
- JavaScript
- Bootstrap v5.1.3.
- Composer

Sources
-------

[](#sources)

Layout for the quiz questions and answers was inspired by the BBBootstrap - Code snippets:

Setup
-----

[](#setup)

### Installation

[](#installation)

1. Download the archive or clone the project using git `git clone https://github.com/drajin/onlinetest`or install through composer: `composer create-project drajin/onlinetest`
2. Create database schema and give it a name of `onlinetest`
3. Import database to phpMyAdmin (SQL file located in the `root/application/onlinetest.sql`
4. `cd onlinetest`
5. Run `composer install`
6. Start xampp or wamp server
7. Start php server by running command `php -S 127.0.0.1:8080`
8. Open in browser

### Usage

[](#usage)

To access admin side of the application visit

Use `admin@onlinetest.com` as a username and `admin` as a password to login.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1717d ago

Major Versions

0.1 → 1.02021-10-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/63eed7bb3f96b576930ea5e9f1ddc55f629b35f7b7f4159f9abfa1c92d4d2e9b?d=identicon)[drajin](/maintainers/drajin)

---

Top Contributors

[![drajin](https://avatars.githubusercontent.com/u/8049341?v=4)](https://github.com/drajin "drajin (49 commits)")

### Embed Badge

![Health badge](/badges/drajin-onlinetest/health.svg)

```
[![Health](https://phpackages.com/badges/drajin-onlinetest/health.svg)](https://phpackages.com/packages/drajin-onlinetest)
```

###  Alternatives

[phpoffice/common

PHPOffice Common

23812.8M36](/packages/phpoffice-common)[pragmarx/random

Create random chars, numbers, strings

744.6M5](/packages/pragmarx-random)[sansec/composer-integrity-plugin

5727.2k2](/packages/sansec-composer-integrity-plugin)[netresearch/t3-cowriter

With the help of AI you can now work on a page together with a cowriter - a digital assistant that helps you to write your content.

1111.6k](/packages/netresearch-t3-cowriter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
