PHPackages                             vphantom/nanosurvey - 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. [Framework](/categories/framework)
4. /
5. vphantom/nanosurvey

ActiveLibrary[Framework](/categories/framework)

vphantom/nanosurvey
===================

Barebones PHP survey framework with zero client and server side dependencies

v0.5.0(8y ago)15[1 issues](https://github.com/vphantom/nanosurvey/issues)MITPHPPHP &gt;=5.5

Since Jul 31Pushed 7y ago2 watchersCompare

[ Source](https://github.com/vphantom/nanosurvey)[ Packagist](https://packagist.org/packages/vphantom/nanosurvey)[ RSS](/packages/vphantom-nanosurvey/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

nanosurvey
==========

[](#nanosurvey)

![license](https://camo.githubusercontent.com/b5e8adfc16d636939918069700ff26e8a969e321585e83448b1d70ab0b91c30f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f767068616e746f6d2f6e616e6f7375727665792e7376673f7374796c653d706c6173746963) ![GitHub release](https://camo.githubusercontent.com/66a8dd1e6e7f006d214ec3c9165ddefa5419514c3191b3b838cb8aeea8d6661b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f767068616e746f6d2f6e616e6f7375727665792e7376673f7374796c653d706c6173746963)

Barebones PHP survey framework with zero client and server side dependencies.

Multi-page, branching survey framework that doesn't require JavaScript nor cookies client-side, and also doesn't need sessions or an SQL back-end server-side.

At each page, hidden form variables persist answers previously given, until the form is completed where results are saved sequentially in a plain CSV file.

See the included example pages and the NanoSurvey class' documentation below for usage.

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

[](#installation)

You can just include `NanoSurvey.php` directly in your project or use Composer:

```
$ composer require vphantom/nanosurvey
```

Usage
-----

[](#usage)

Instantiate the `NanoSurvey` class, which will process `$_REQUEST`'s `a`, `p` and `x` CGI variables to situate itself. Invoke `page()` to display the current page inside a `` block.

```

    Survey

Survey
