PHP code example of cakemanager / cakephp-whosonline
1. Go to this page and download the library: Download cakemanager/cakephp-whosonline 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/ */
cakemanager / cakephp-whosonline example snippets
Plugin::load('WhosOnline', ['bootstrap' => true, 'routes' => true]);
$this->loadComponent('WhosOnline.WhosOnline', []);
$this->loadComponent('WhosOnline.WhosOnline', [
'lastSeen' => true,
'failedLogins' => false,
'events.lastSeen' => 'Controller.Users.customAfterLogin'
]);