mvlabs / mvlabs-eventlogger
MvlabsEventLogger is a ZF2 module that allow to log user events in easy way based on event listener.
Installs: 47
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:zf2-module
Requires
- php: >=5.5
- doctrine/doctrine-orm-module: 0.9.*
- zendframework/zendframework: ~2.5
This package is not auto-updated.
Last update: 2024-11-09 20:44:57 UTC
README
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
-
Add to your
composer.json
:$ php composer.phar require mvlabs/mvlabs-eventlogger
-
Now tell composer to download MvlabsEventLogger by running the command:
$ php composer.phar update mvlabs/mvlabs-eventlogger
Post installation
-
Enabling it in your
application.config.php
file.<?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', ]);