SurvLoop is a Laravel-based engine for designing a database and creating a mobile-friendly user interface to fill it.

v0.0.8 2017-09-05 22:56 UTC


Laravel License

SurvLoop is a Laravel-based engine for websites dominated by the collection and publication of open data. This is a database design and survey generation system, though it will increasingly be a flexible tool to solve many web-based problems.

It is currently in continued, heavy development, with much happening here in early 2017, almost ready to go live. I plan to provide more documentation in the coming weeks. Thank you for your interest and patience!

This was originally developed to build the Open Police system. So until the SurvLoop installation processes automates everything, plus the bell & whistle options, please check out the Open Police package for an heavy example of how to extend SurvLoop for your custom needs. (Lighter examples coming online soon!-)

The upcoming Open Police web app is the best live beta demo of the engine's end results, and feedback on that project and the SurvLoop user experience can be via the end of the submission process:
The resulting database designed using the engine, as well as the branching tree which specifies the user's experience: /db/OP
Among other methods, the resulting data can also be provided as XML included an automatically generated schema, eg.

Table of Contents


Getting Started

Here are instructions if you are new to Laravel, or just want step-by-step instructions on how to install its development environment, Homestead:

  • Install Laravel's default user authentication, notifications, and SurvLoop:
$ php artisan make:auth
$ php artisan vendor:publish --tag=laravel-notifications
  • Update composer.json to add requirements and an easier SurvLoop reference:
$ nano composer.json
"require": {
    "wikiworldorder/survloop": "0.*",
"autoload": {
	"psr-4": {
		"SurvLoop\\": "vendor/wikiworldorder/survloop/src/",
$ composer update
  • Add the package to your application service providers in config/app.php.
    'name' => 'SurvLoop',
'providers' => [
'aliases' => [
	'SurvLoop'	=> 'WikiWorldOrder\SurvLoop\SurvLoopFacade',
  • Swap out the SurvLoop user model in config/auth.php.
'model' => App\Models\User::class,
  • Update composer, publish the package migrations, etc...
$ php artisan vendor:publish --force
$ php artisan migrate
$ composer dump-autoload
$ php artisan db:seed --class=SurvLoopSeeder
  • For now, to apply database design changes to the same installation you are working in, depending on your server, you might also need something like this...
$ chown -R www-data:33 app/Models
$ chown -R www-data:33 database


Once installed, documentation of this system's database design can be found at /dashboard/db/all . This system's user experience design for data entry can be found at /dashboard/tree/map?all=1&alt=1 or publicly visible links like those above.


Here's the TODO list for the next release (1.0). It's my first time building on Laravel, or GitHub. So sorry.

  • Correct all issues needed for minimum viable product, and launch initial beta sites powered by SurvLoop.
  • Database design and user experience admin tools to be generated by SurvLoop itself.
  • Code commenting, learning and adopting more community norms.
  • Finish migrating all raw queries to use Laravel's process.
  • Adding tests.

Change Logs

Contribution Guidelines

Please help educate me on best practices for sharing code in this community. Please report any issue you find in the issues page.