Skip to content

mvlabs/MvlabsEventLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MvlabsEventLogger

MvlabsEventLogger is a ZF2 module that allow to log user events in easy way based on event listener.

Requirements PHPExcel library

  • PHP version 5.5.0 or higher

Installation

With composer

  1. Add to your composer.json :

    $ php composer.phar require mvlabs/mvlabs-eventlogger
  2. Now tell composer to download MvlabsEventLogger by running the command:

    $ php composer.phar update mvlabs/mvlabs-eventlogger

Post installation

  1. Enabling it in your application.config.phpfile.

    <?php
    return [
        'modules' => [
            // ...
            'MvlabsEventLogger',            
        ],
        // ...
    ];

Usage

The module registers an EventManager:

$eventManager = $serviceLocator->get('MvlabsEventLogger\EventManager\EventManager');
//register event
$this->eventManager->trigger('user.logging', $this, [
   'platform' => 'mvlabs',
   'area' => 'users',
   'action' => 'user loggin',
]);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages