Generic gamification PHP framework