PHPackages                             lms42/quiz-bundle - 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. lms42/quiz-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

lms42/quiz-bundle
=================

Quiz bundle.

v1.0.1(12y ago)66527[3 issues](https://github.com/lms42/SmirikQuizBundle/issues)MITPHP

Since Mar 18Pushed 12y ago5 watchersCompare

[ Source](https://github.com/lms42/SmirikQuizBundle)[ Packagist](https://packagist.org/packages/lms42/quiz-bundle)[ Docs](https://lms42.com)[ RSS](/packages/lms42-quiz-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (7)Used By (0)

QuizBundle
==========

[](#quizbundle)

Introduction
------------

[](#introduction)

This bundle provides quiz functionality as standalone symfony2 bundle. Created by [4xxi.com](http://4xxi.com/en). [All bundles](http://4xxi.com/en/symfony) by 4xxi.

Features
--------

[](#features)

- Unlimited quiz creation.
- Every quiz can have different number of questions. The question's database could have much more questions than need. For quizes questions are taken randomly.
- Every question can have any number of answers (radio-button answers) or text answer (input field).
- Question &amp; answer can have image.
- Quiz could be limited by time (e.g. 10 minutes).
- It is possible to hide quiz from users. The administrator can manually assign users to quiz.
- Bundle is translated, see Resources/translations. Some translations on english could be missed because of rapidly development.

Requirements
------------

[](#requirements)

- Symfony2 with twig.
- Doctrine2, DoctrineExtension &amp; DoctrineFixtures.
- [FOSUserBundle](https://github.com/FriendsOfSymfony/FOSUserBundle) (please see the installation steps [here](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/index.md)).
- Annotations for Controllers.
- jQuery &amp; twitter bootstrap css / js or similar.
- It is recommended to use this bundle with [SmirikAdminBundle](https://github.com/smirik/SmirikAdminBundle) which provides public assets (including twitter bootstrap &amp; jquery) + menu + core classes.

Installation
------------

[](#installation)

- Add bundle to your `deps` file:

    ```
    [SmirikQuizBundle]
      git=git://github.com/smirik/SmirikQuizBundle.git
      target=/bundles/Smirik/QuizBundle

    ```
- Register the namespace in `autoload.php` (if you don't use other Smirik\* bundles):

    ```
    $loader->registerNamespaces(array(
        ...
        'Smirik'           => __DIR__.'/../vendor/bundles',
    ));

    ```
- Register bundle in your `AppKernel.php`:

    ```
    $bundles = array(
        ...
        new Smirik\QuizBundle\SmirikQuizBundle(),
        ...
    );

    ```
- Add the following code to `config.yml`:

    ```
    fos_user:
          db_driver: orm # other valid values are 'mongodb', 'couchdb'
          firewall_name: main
          user_class: Smirik\QuizBundle\Entity\User
          group:
              group_class: Smirik\QuizBundle\Entity\Group

    ...
    twig:
        debug:            %kernel.debug%
        strict_variables: %kernel.debug%
        form:
          resources:
            - 'SmirikQuizBundle:Form:fields.html.twig'

    ```
- Add routes to `routing.yml`:

```
 SmirikQuizBundle:
     resource: "@SmirikQuizBundle/Controller/"
     type:     annotation
     prefix:   /

```

- Update database and load test fixtures to see admin functionality

    ```
    php app/console doctrine:schema:update --force
    php app/console doctrine:fixtures:load --append

    ```
- See test quiz at `http://host/admin/quiz/`
- Please check that `bootstrap.css` file is loaded.
- Enjoy!

Database schema
---------------

[](#database-schema)

[![Database schema](https://camo.githubusercontent.com/d73e9fc8cce61e4ed967dab956efbb4b7fdea60efa7673f5f24bbbd315866a6e/687474703a2f2f347878692e636f6d2f696d616765732f536d6972696b5175697a42756e646c652d44422e706e67)](https://camo.githubusercontent.com/d73e9fc8cce61e4ed967dab956efbb4b7fdea60efa7673f5f24bbbd315866a6e/687474703a2f2f347878692e636f6d2f696d616765732f536d6972696b5175697a42756e646c652d44422e706e67)

How to use
----------

[](#how-to-use)

- Bundle has its own layout `Resources/views/layout.html.twig` extending `base.html.twig`. All templates extending this layout. All admin templates extends `Resources/views/Admin/layout.html.twig`.
- There are 4 controllers:
    - AdminQuestionController (/admin/questions/\*) for questions management,
    - AdminQuizController (/admin/quiz/\*) for quizes management,
    - AdminUserController (/admin/quiz-users/\*) for assigning users to quizes,
    - QuizController (/quiz/\*) — frontend for users.
- Access to all parts is granted just for authorized users.
- Just ROLE\_ADMIN users have access to /admin/\* parts.
- To start test quiz you should login (/login) and go to /quiz webpage.

Roadmap
-------

[](#roadmap)

- Comments, pulls, reviews, forks are welcome!

License
-------

[](#license)

MIT.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 78% 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 ~49 days

Total

5

Last Release

4655d ago

Major Versions

v0.4.0 → v1.0.02013-08-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bc88d7ee5c99d608028e298afa0575ca2c59eafa36319833bc08dfe68df51e5?d=identicon)[smirik](/maintainers/smirik)

---

Top Contributors

[![smirik](https://avatars.githubusercontent.com/u/354907?v=4)](https://github.com/smirik "smirik (32 commits)")[![sorbing](https://avatars.githubusercontent.com/u/1755934?v=4)](https://github.com/sorbing "sorbing (7 commits)")[![abermek](https://avatars.githubusercontent.com/u/619276?v=4)](https://github.com/abermek "abermek (2 commits)")

---

Tags

quiz

### Embed Badge

![Health badge](/badges/lms42-quiz-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/lms42-quiz-bundle/health.svg)](https://phpackages.com/packages/lms42-quiz-bundle)
```

###  Alternatives

[h5p/h5p-core

H5P Core functionality in PHP

1461.6M38](/packages/h5p-h5p-core)[h5p/h5p-editor

H5P Editor functionality in PHP

781.6M32](/packages/h5p-h5p-editor)[v-matsuk/time-overlap-calculator

Time overlap calculator

1115.6k1](/packages/v-matsuk-time-overlap-calculator)

PHPackages © 2026

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