PHPackages                             joegabdelsater/survey-generator - 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. joegabdelsater/survey-generator

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

joegabdelsater/survey-generator
===============================

This package is a plug and play package for creating survey feature to your project

v1.0.0(2y ago)09MITPHP

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/joegabdelsater/survey-generator)[ Packagist](https://packagist.org/packages/joegabdelsater/survey-generator)[ RSS](/packages/joegabdelsater-survey-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Step 1
======

[](#step-1)

`composer require joegabdelsater/survey-generator`

Step 2
======

[](#step-2)

`php artisan vendor:publish` and select the appropriate package number

Step 3
======

[](#step-3)

`php artisan migrate`

Functions
=========

[](#functions)

To use the package add to your class `use Joegabdelsater\SurveyGenerator`

For dummy data creation
-----------------------

[](#for-dummy-data-creation)

`SurveyGenerator::generateForm()``SurveyGenerator::generateAnswers()`

Make sure you have a user with id 1 as it is hardcoded in the function

For use
-------

[](#for-use)

- `SurveyGenerator::getSurveyForm($surveyId = false)` if $surveyId is not passed, the first survey is retrieved
- `SurveyGenerator::getAnsweredSurvey($surveyId = false, $userId = false)` if $surveyId is not passed, the first survey is retrieved, $userId is used in the testing functions
- `SurveyGenerator::submit()`it accesses the $request object directly, make sure to pass the survey\_id, and the answers should have a key of `question_{$questionId}`.

if the question type is text, the value should be what is gathered from the user input. if not, the option\_id should be provided

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

1030d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b5c002fe05d2c0e956d4b6bc759d92471b191dd2a8ca33a0dfa3de8d363d0a7?d=identicon)[joegabdelsater](/maintainers/joegabdelsater)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/joegabdelsater-survey-generator/health.svg)

```
[![Health](https://phpackages.com/badges/joegabdelsater-survey-generator/health.svg)](https://phpackages.com/packages/joegabdelsater-survey-generator)
```

PHPackages © 2026

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