PHPackages                             silentpost/module-product-quiz - 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. silentpost/module-product-quiz

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

silentpost/module-product-quiz
==============================

Provide users with a suggested product after answering questions based on product attributes.

5381PHP

Since Oct 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dstrunk/product-quiz)[ Packagist](https://packagist.org/packages/silentpost/module-product-quiz)[ RSS](/packages/silentpost-module-product-quiz/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Product Quiz Recommendations for Magento 2.x
============================================

[](#product-quiz-recommendations-for-magento-2x)

**Warning! This software is currently pre-1.0.0. Expect breaking changes until an official, tagged 1.0.0 release is available.** Please see the [Road to 1.0.0](https://github.com/dstrunk/product-quiz/projects/1) project to see what is expected before a tagged release is available.

This module allows business-users to create product quiz recommendations within the Magento 2 admin dashboard.

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

[](#installation)

This package is best installed via composer. To install using the recommended method, run the following:

```
composer require silentpost/module-product-quiz
bin/magento module:enable Silentpost_ProductQuiz
bin/magento setup:upgrade
bin/magento setup:di:compile
```

### Packagist

[](#packagist)

This module is hosted on [packagist](https://packagist.org/). If you are using the default Magento metapackage, you will need to add the packagist repository to your store's `composer.json`:

```
{
    "repositories": [
        {
            "type": "composer",
            "url": "https://repo.magento.com"
        },
        {
            "type": "composer",
            "url": "https://packagist.org"
        }
    ]
}
```

Setup
-----

[](#setup)

Setting up a Product Quiz from scratch in the Magento 2 admin can be found on the Product Quiz project's wiki, [found here](https://github.com/dstrunk/product-quiz/wiki).

Frontend development
--------------------

[](#frontend-development)

Currently, this quiz has no frontend configuration available via the Magento admin. Because of this, additional development is required for the following:

- Layout XML
- Knockout Templates
- CSS

### Layout XML

[](#layout-xml)

Adding the quiz to the frontend will require changes to the desired `layout.xml` file. A sample `layout.xml` can be seen here:

```

```

### Knockout Templates

[](#knockout-templates)

In the future other frameworks may be considered (e.g. AlpineJS using the Hyvä theme), but currently the frontend is completely driven by Knockout JS.

To customize Knockout templates, copy this package's `view/frontend/web/template` directory to the following directory, `app/design/frontend///Silentpost_ProductQuiz`:

```
# Path: app/design/frontend///Silentpost_ProductQuiz

web/template
├── product-quiz
│   └── stage
│       ├── error.html
│       ├── intro.html
│       ├── quiz
│       │   ├── answer.html
│       │   └── question.html
│       └── quiz.html
└── product-quiz.html

3 directories, 6 files
```

### CSS

[](#css)

The Product Quiz has no defined conventions around how it should look; stakeholders may wish to inline the quiz on a homepage, display the quiz as a modal overlay, or a combination of the two. With this in mind, styles for the product quiz is intentionally bare bones. For reference, there is a sample Less file of styling the Product Quiz on the project's Wiki, [seen here](https://github.com/dstrunk/product-quiz/wiki).

**Note**: The Product Quiz departs from Magento 2's frontend CSS recommendations. Instead, the Product Quiz utilizes BEM for CSS conventions. For more information about BEM, [see this link](http://getbem.com/).

To make CSS additions to the frontend of the Product Quiz, add the following file to a new `app/design/frontend///Silentpost_ProductQuiz` directory:

```
# Path: app/design/frontend///Silentpost_ProductQuiz

web
└── css
    └── source
        └── _module.less

2 directories, 1 file
```

Contributing
------------

[](#contributing)

Please see `CONTRIBUTING.md` for details on the contributor code of conduct, as well as the process for submitting pull requests.

Versioning
----------

[](#versioning)

This project attempts to use [Semantic Versioning](https://semver.org/) as closely as possible. For the versions available, see the [tags on this repository](https://github.com/dstrunk/Product-Quiz/tags).

License
-------

[](#license)

Distributed under the MIT License. See `LICENSE.md` for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9b80b47d2fb490da4653619b9c4948d977542daa056a80b78951702d12e99fc?d=identicon)[dstrunk](/maintainers/dstrunk)

---

Top Contributors

[![dstrunk](https://avatars.githubusercontent.com/u/621296?v=4)](https://github.com/dstrunk "dstrunk (37 commits)")

### Embed Badge

![Health badge](/badges/silentpost-module-product-quiz/health.svg)

```
[![Health](https://phpackages.com/badges/silentpost-module-product-quiz/health.svg)](https://phpackages.com/packages/silentpost-module-product-quiz)
```

###  Alternatives

[godbout/dash-docset-builder

Dash (LOVE) Docset Builder in PHP (LOVE).

1253.5k](/packages/godbout-dash-docset-builder)[markwalet/laravel-packagist

A Laravel wrapper for the `spatie/packagist-api` package.

132.1k](/packages/markwalet-laravel-packagist)

PHPackages © 2026

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