2017 © Pedro PelĂĄez
 

cakephp-plugin cakephp-gamification

CakePHP plugin to easily add gamification

image

kemcake-wanted33/cakephp-gamification

CakePHP plugin to easily add gamification

  • Thursday, May 15, 2014
  • by Wanted33
  • Repository
  • 2 Watchers
  • 3 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Gamification

CakePHP plugin to easily add gamification, (*1)

Requirements

  • PHP5
  • CakePHP >= 2.2.5
  • Minimum PHP skills

Installation

this repository should be installed in the same way as any other plugin., (*2)

cd somefolder/app/Plugin
git clone git://github.com/kemcake/cakephp-gamification.git Gamification

You need to enable the plugin in your app/Config/bootstrap.php file:, (*3)

CakePlugin::load('Gamification');, (*4)

If you are already using CakePlugin::loadAll();, then this is not necessary., (*5)

You can also find the plugin on Packagist : https://packagist.org/packages/kemcake-wanted33/cakephp-gamification, (*6)

Database

We're working on it but for now, you need to create the plugins table on your own., (*7)

Follow this model, (*8)

You can files in Gamification/Migrations if you use Migrations plugin, (*9)

Use it

Simply add this to each model you want to be gamificable., (*10)

Currently support Add / Edit / Delete action, (*11)

// app/Model/SampleModel.php
  class SampleModel extends AppModel {

    public $actsAs = array(
        'Gamification.Gamificable' => array(
            'rules' => array(
                array(
                    'action' => 'Add',
                    'points' => 20,
                    'occurence' => 1
                ),
                array(
                    'action' => 'Edit',
                    'points' => 10,
                    'occurence' => 1
                ),
                array(
                    'action' => 'Delete',
                    'points' => 5,
                    'occurence' => 1
                )
            )
        )
    );

    // Whatever your class do
  }

Author

RĂ©mi Santos (KemCake), (*12)

Quentin Rubini (Wanted33), (*13)

The Versions

15/05 2014

dev-master

9999999-dev https://github.com/KemCake/cakephp-gamification

CakePHP plugin to easily add gamification

  Sources   Download

MIT

The Requires

  • php >=5.0
  • cakephp 2.2.5

 

cakephp behavior soft gamification