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

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

idun/survey
===========

Create simple survey forms

06PHP

Since Oct 22Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\#Survey tool for creating simple survey forms A simple PHP tool to create simple surveys, complete with prewritten (though hideous) views and a page controller. At this time without any saving option in the survey forms. This repo is created as a part of a course in PHP MVC frameworks at Blekinge Tekniska Högskola (BTH).

\##Requirements This PHP tool is written with the Anax-MVC framework in mind. To be able to follow the installation guide requires that you have a clean installation of the Anax-MVC framework with the CDatabase service separately installed in the framework. For further reading, please visit [Anax-MVC](https://github.com/mosbth/Anax-MVC "Anax-MVC on GitHub") and [CDatabase](https://github.com/mosbth/cdatabase "CDatabase on GitHub") on GitHub.

\##Installation Add the survey package to your Anax-MVC composer-file:

```

    "require": {

        "idun/survey": "dev-master"
    },

```

Load the package into the framwork using this line in the terminal program:

```

    composer update

```

Now you have all the nessesary files in the vendor folder. **BUT** we need to refurnish a bit and move the files from the vendor-folder into the frameworks app-folder, all except the page controller file *survey.php*.

- Move the "Survey"-folder from *idun/survey/src* to *app/src*
- Move the "survey"-folder from *idun/survey/view* to *app/view*
- Move the "survey.php" page controller file from *idun/survey/webroot* to the Anax-MVC webroot-folder.

\###Important! The page controller file *survey.php* assumes that you have installed the CDatabase service and that the connection detailes for the service are located in the *app/config* folder in a file called "database\_mysql.php", all for a better MVC structure. **If this is not the case** then change the file location and/or file name in the service injection for the database service in the page controller:

```

    $di->setShared('db', function() use ($di) {
        $db = new \Mos\Database\CDatabaseBasic();
        $db->setOptions(require ANAX_APP_PATH . 'config/database_mysql.php');
        $db->connect();
        return $db;
    });

```

Now you are all set! Just point your browser to the page controller survey.php in the Anax-MVC webroot folder and add the route "setup" the first time (i.e. *Anax-MVC/webroot/survey.php/setup*) to setup the database table and add some content to it.

*Welcome to the survey service! =)*

\####Notice! The survey tool is, as mentioned before, built with the Anax-MVC framework in mind and with the CDatabase service as a layer of protection against SQL injection instead of plain SQL code. This means that the methods in the SurveyController class are based on the CDatabase syntax, and to free the controller from this depencency would mean having to more or less rewrite the entire code. This service is just a test project, so the recommendation is to stick to the present syntax.

###  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

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[mainwp/mainwp-child

This is the Child plugin for the MainWP Dashboard

973.4k](/packages/mainwp-mainwp-child)

PHPackages © 2026

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