dev-master
9999999-dev https://github.com/KemCake/cakephp-gamificationCakePHP plugin to easily add gamification
MIT
The Requires
- php >=5.0
- cakephp 2.2.5
by RĂ©mi Santos
cakephp behavior soft gamification
CakePHP plugin to easily add gamification
CakePHP plugin to easily add gamification, (*1)
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)
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)
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 }
RĂ©mi Santos (KemCake), (*12)
Quentin Rubini (Wanted33), (*13)
CakePHP plugin to easily add gamification
MIT
cakephp behavior soft gamification