qobo/cakephp-survey

This package is abandoned and no longer maintained. No replacement package was suggested.

CakePHP plugin for handling surveys

Installs: 20 464

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 14

Forks: 0

Open Issues: 4

Type:cakephp-plugin


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License codecov BCH compliance

About

Template for building CakePHP 3 plugins.

This plugin is developed by Qobo for Qobrix. It can be used as standalone CakePHP plugin, or as part of the project-template-cakephp installation.

Usage

Pull the template code into your plugin:

composer require qobo/cakephp-survey

Setup

Load plugin

bin/cake plugin load --bootstrap --routes Qobo/Survey

or manually add it to config/bootstrap.php:

Plugin::load('Qobo/Survey', ['routes' => true, 'bootstrap' => true]);

Survey plugin also uses ADmad/cakephp-sequence plugin for Questions/Answers ordering as part of qobo/cakephp-utils setup. In order to enable that feature don't forget to load it in APP/config/bootstrap.php:

Plugin::load('ADmad/Sequence');

In order for the plugin to work correctly, you should also run DB migrations:

./bin/cake migrations migrate --plugin Qobo/Survey

Surveys plugin is designed for the systems, that use authorised users, so you might run into few glitches on a plain CakePHP installation if you don't have native AuthComponent enabled.

We use qobo/cakephp-utils plugin as a generic toolset provider. It contains CakeDC/Users plugin to handle authentication/authorisation for the users.

The plugin was designed with AdminLTE theme in mind, so you can enable it as well using:

//inside config/bootstrap.php add:
Plugin::load('AdminLTE', ['bootstrap' => true, 'routes' => true]);
//in your AppController.php:
public function beforeFilter(Event $event)
{
  $this->viewBuilder()->theme('AdminLTE');
  $this->viewBuilder()->layout('adminlte'); // copy adminlte.ctp to your src/Template/Layout/ directory from the plugin.
}

Note: Qobo provides qobo/project-template-cakephp repository where you can find some of the company plugins already pre-configured and used.

Support

For bugs and feature requests, please use the issues section of this repository.