PHP code example of mvlabs / mvlabs-eventlogger

1. Go to this page and download the library: Download mvlabs/mvlabs-eventlogger library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mvlabs / mvlabs-eventlogger example snippets


    
    return [
        'modules' => [
            // ...
            'MvlabsEventLogger',            
        ],
        // ...
    ];
    
bash
    $ php composer.phar 
bash
    $ php composer.phar update mvlabs/mvlabs-eventlogger
    
 php
$eventManager = $serviceLocator->get('MvlabsEventLogger\EventManager\EventManager');
//register event
$this->eventManager->trigger('user.logging', $this, [
    'platform' => 'mvlabs',
    'area' => 'users',
    'action' => 'user loggin',
]);