PHPackages                             escolalms/questionnaire - 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. [API Development](/categories/api)
4. /
5. escolalms/questionnaire

ActivePackage[API Development](/categories/api)

escolalms/questionnaire
=======================

Escola LMS Questionnaire

0.2.26(1y ago)110.5k↓20%12MITPHPPHP &gt;=7.4|&gt;=8CI passing

Since Feb 2Pushed 1y ago2 watchersCompare

[ Source](https://github.com/EscolaLMS/Questionnaire)[ Packagist](https://packagist.org/packages/escolalms/questionnaire)[ RSS](/packages/escolalms-questionnaire/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (55)Used By (2)

Questionnaire
=============

[](#questionnaire)

Questionnaire package

[![swagger](https://camo.githubusercontent.com/bf46f50926ef796b1bb0b6e41af746af52ff3aacdffb0533450f3b614a7334a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d737761676765722d677265656e)](https://escolalms.github.io/Questionnaire/)[![codecov](https://camo.githubusercontent.com/e9bcb849e3b314dcf5e66cd5e7a1e73b3a33ba0e3d32a70462cdec71ab1b9c4f/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f7175657374696f6e6e616972652f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d67427a70794e4b384451)](https://codecov.io/gh/EscolaLMS/questionnaire)[![phpunit](https://github.com/EscolaLMS/questionnaire/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/questionnaire/actions/workflows/test.yml)[![downloads](https://camo.githubusercontent.com/8ea47d299e0dc8df4e0a226b6d819bb97d26b18f7ca913f68a7ab963c914ab55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6573636f6c616c6d732f7175657374696f6e6e61697265)](https://packagist.org/packages/escolalms/questionnaire)[![downloads](https://camo.githubusercontent.com/1a6010e781fba566e9e67dc4d94d8f0ed8934833452505ace1d26211d368febf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6573636f6c616c6d732f7175657374696f6e6e61697265)](https://packagist.org/packages/escolalms/questionnaire)[![downloads](https://camo.githubusercontent.com/b0d6e5512bf96b3e283f9f534721eb5010de5c67fad4af0c768d941ab5860803/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6573636f6c616c6d732f7175657374696f6e6e61697265)](https://packagist.org/packages/escolalms/questionnaire)

What does it do
---------------

[](#what-does-it-do)

This package is used for creating Questionnaire for EscolaLms.

Installing
----------

[](#installing)

- `composer require escolalms/questionnaire`
- `php artisan migrate`
- `php artisan db:seed --class="EscolaLms\Questionnaire\Database\Seeders\QuestionnairePermissionsSeeder"`

Endpoints
---------

[](#endpoints)

All the endpoints are defined in [![swagger](https://camo.githubusercontent.com/bf46f50926ef796b1bb0b6e41af746af52ff3aacdffb0533450f3b614a7334a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d737761676765722d677265656e)](https://escolalms.github.io/Questionnaire/)

Tests
-----

[](#tests)

Run `./vendor/bin/phpunit` to run tests. See [tests](tests) folder as it's quite good staring point as documentation appendix.

Test details [![codecov](https://camo.githubusercontent.com/e9bcb849e3b314dcf5e66cd5e7a1e73b3a33ba0e3d32a70462cdec71ab1b9c4f/68747470733a2f2f636f6465636f762e696f2f67682f4573636f6c614c4d532f7175657374696f6e6e616972652f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d67427a70794e4b384451)](https://codecov.io/gh/EscolaLMS/questionnaire) [![phpunit](https://github.com/EscolaLMS/questionnaire/actions/workflows/test.yml/badge.svg)](https://github.com/EscolaLMS/questionnaire/actions/workflows/test.yml)

Events
------

[](#events)

This package does not dispatch any events.

Listeners
---------

[](#listeners)

This package does not listen for any events

How to use this on frontend.
----------------------------

[](#how-to-use-this-on-frontend)

### Admin panel

[](#admin-panel)

**Left menu**

[![Menu](docs/menu.png "Menu")](docs/menu.png)

**List of questionnaire**

[![List of questionnaire](docs/list.png "List of questionnaire")](docs/list.png)

**Creating/editing questionnaire**

[![Creating/editing questionnaire](docs/new_questionnairy.png "Creating/editing questionnaire")](docs/new_questionnairy.png)

**Creating/editing question**

[![Creating/editing question](docs/add_question.png "Creating/editing question")](docs/add_question.png)

**Assign questionnaire to Course**

[![Assign questionnaire to Course](docs/assign_course.png "Assign questionnaire to Course")](docs/assign_course.png)

**List of Answers**

[![List of Answers](docs/answers.png "List of Answers")](docs/answers.png)

**Report**

[![Report](docs/report.png "Report")](docs/report.png)

### Front Application

[](#front-application)

...

Permissions
-----------

[](#permissions)

Permissions are defined in [seeder](packages/questionnaire/database/seeders/QuestionnairePermissionsSeeder.php)

Database relation
-----------------

[](#database-relation)

1. `Questionnaires` general Questionnaire (Title) is related to Questionnaire\_models
2. `Questionnaire_models` Questionnaire model belong to model type and model id
3. `Questionnaire_model_types` Model Type (Curse, Webinar etc.)
4. `Questions` Question belong to Questionnaire
5. `Question_answers` Question answer is related to Question and Questionnaire\_models

```
Questionnaires 1 -> n Questionnaire_models
Questionnaires 1 -> n Questions
Questionnaire_models 1 -> n Questionnaire_model_types
Question_answers 1 -> n Questions
Question_answers 1 -> n Questionnaire_models

```

To add new model type you need to insert new record to `Questionnaire_model_types`

```
title -> Title of model (example - 'Course')
model_class => Model class name (example 'EscolaLms\Courses\Models\Course')

```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance41

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~21 days

Total

52

Last Release

487d ago

### Community

Maintainers

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

---

Top Contributors

[![KrzysztofDziedziechEscolasoft](https://avatars.githubusercontent.com/u/96292232?v=4)](https://github.com/KrzysztofDziedziechEscolasoft "KrzysztofDziedziechEscolasoft (32 commits)")[![daVitekPL](https://avatars.githubusercontent.com/u/58150098?v=4)](https://github.com/daVitekPL "daVitekPL (13 commits)")[![mako321](https://avatars.githubusercontent.com/u/59456825?v=4)](https://github.com/mako321 "mako321 (12 commits)")[![qunabu](https://avatars.githubusercontent.com/u/214608?v=4)](https://github.com/qunabu "qunabu (6 commits)")[![krzEscola](https://avatars.githubusercontent.com/u/85549830?v=4)](https://github.com/krzEscola "krzEscola (6 commits)")[![HerbertIV](https://avatars.githubusercontent.com/u/62691459?v=4)](https://github.com/HerbertIV "HerbertIV (3 commits)")[![dicani0](https://avatars.githubusercontent.com/u/58490533?v=4)](https://github.com/dicani0 "dicani0 (3 commits)")[![dyfero](https://avatars.githubusercontent.com/u/59400506?v=4)](https://github.com/dyfero "dyfero (2 commits)")

---

Tags

api-restlaravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/escolalms-questionnaire/health.svg)

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

###  Alternatives

[ronasit/laravel-helpers

Provided helpers function and some helper class.

1475.7k13](/packages/ronasit-laravel-helpers)[escolalms/headless-h5p

Headless H5P Laravel REST API

2732.6k8](/packages/escolalms-headless-h5p)[studio-net/laravel-graphql

GraphQL implementation with power of Laravel

562.1k](/packages/studio-net-laravel-graphql)

PHPackages © 2026

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