php-surveys is a PHP web application that lets you create and collect survey responses. The results can be viewed on charts and exported to PDF. The survey data is stored within a mysql database by default, and can also be stored in a sqlite3 or postgresql database. Edit app/config/Database.php to database of your choice.

Require the package using composer.
composer install
composer update
Update the database credentials in app/config/Database.php
Run this bash command to create all the required tables and insert the default data.
php index.php root system setup
The default login is 'admin@localhost.com' with a password of '12345678'. You can update login credentials from the Account page.
Load from the users table
php index.php root selecttable users
php index.php root selecttable users "id = 1"
Load from the users table
php index.php root selecttable surveys
php index.php root selecttable surveys "slug LIKE '%dolor%'""
Be sure that your writable/ directory is writable by your web server.
sudo dscl . -append /Groups/_www GroupMembership username
sudo dscl . -append /Groups/_www GroupMembership daemon
sudo chown -R :_www writable/cache
sudo chmod -R 775 writable/cache
sudo chmod g+s writable/cache
Change the 'username' to your username.
sudo chown -R www-data:www-data writable/cache
sudo chmod -R 775 writable/cache
sudo chmod g+s writable/cache
Change 'www-data' to your web server user if it's different (e.g., 'apache' on some systems).
Enjoy using the application