PHPackages                             cakemanager/cakephp-whosonline - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. cakemanager/cakephp-whosonline

ActiveCakephp-plugin

cakemanager/cakephp-whosonline
==============================

WhosOnline plugin for CakePHP to check your users activity

1.0.x-dev(10y ago)4364PHPPHP &gt;=5.4

Since Mar 24Pushed 10y ago3 watchersCompare

[ Source](https://github.com/cakemanager/cakephp-whosonline)[ Packagist](https://packagist.org/packages/cakemanager/cakephp-whosonline)[ RSS](/packages/cakemanager-cakephp-whosonline/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

\[DEPRECATED\] WhosOnline plugin for CakePHP
============================================

[](#deprecated-whosonline-plugin-for-cakephp)

The WhosOnline plugin for CakePHP 3.0 (and the [CakeManager](https://github.com/cakemanager/cakephp-cakemanager)) helps you to watch your registered users. You can see when they're logged in, last seen and more!

You are able to see the following:

- Last login timestamp
- Last seen timestamp
- Total passed logins
- Total failed logins
- Total new password requests

The plugin is especially built for the[CakeManager Plugin](https://github.com/cakemanager/cakephp-cakemanager) but is also easy to use without the CakeManager. Read below to change the current events, so you can customize it.

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require cakemanager/cakephp-whosonline

```

Configuration
-------------

[](#configuration)

You will need to add the following line to your application's bootstrap.php file:

```
Plugin::load('WhosOnline', ['bootstrap' => true, 'routes' => true]);
```

> Note: You don't need to load the `routes` if you are not using the CakeManager Plugin.

Usage
-----

[](#usage)

### Component

[](#component)

Add the following to your `AppController` to use the plugin-callbacks:

```
$this->loadComponent('WhosOnline.WhosOnline', []);
```

Options for the component:

- `userId` - Path to the users id in the session
- `userModel` - The model of the users. Default `CakeManager.Users`
- `usermetasModel` - The model of the usermetas. Default `WhosOnline.Usermetas`
- `lastSeen` - Boolean if we should save the lastSeen-status. Default `true`
- `lastLogin` - Boolean if we should save the lastLogin-status. Default `true`
- `passedLogins` - Boolean if we should save the passedLogins-status. Default `true`
- `failedLogins` - Boolean if we should save the failedLogins-status. Default `true`
- `passwordRequests` - Boolean if we should save the passwordRequests-status. Default `true`
- `events` - Array with all events to use custom events.
    - `lastSeen` - Event for when the users is last seen. Default `Component.Manager.beforeFilter`
    - `passwordRequests` - Event for when an user requests a new password. Default `Controller.Users.afterForgotPassword`
    - `passedLogin` - Event for a passed login. Default `Controller.Users.afterLogin`
    - `failedLogin` - Event for a failed login. Default `Controller.Users.afterInvalidLogin`

> Note: Via the `events` configurations you can customize the events for your own application!

Example:

```
$this->loadComponent('WhosOnline.WhosOnline', [
  'lastSeen' => true,
  'failedLogins' => false,
  'events.lastSeen' => 'Controller.Users.customAfterLogin'
]);
```

From now on the component will save all statuses automatically!

### Watching

[](#watching)

If you want to watch the usermetas, watch the menu-item "Who Is Online" and click on it. You will see a list of recent online users and its data.

Support
-------

[](#support)

- [CakeManager Website](http://cakemanager.org/) - Website of the CakeManager Team. Here you can find everything about us and our plugins.
- [Gitter](https://gitter.im/cakemanager/cakephp-whosonline) - Chat Tool for GitHub to talk about issues and new features.
- [GitHub](https://github.com/cakemanager/cakephp-whosonline/issues) - When there's something wrong, please open a new issue!
- [CakeManager Docs](http://cakemanager.org/docs/1.0/) - Documentation about the CakeManager Plugin.

Contributing
------------

[](#contributing)

If you have a good idea for a new feature, feel free to pull or open a new [issue](https://github.com/cakemanager/cakephp-whosonline/issues). Pull requests are always more than welcome.

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2014 CakeManager by bobmulder

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~260 days

Total

2

Last Release

3812d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db071075007a1fb258b395c5e618b3e2409fdf69a07006ae0d847a38be3d8ade?d=identicon)[bobmulder](/maintainers/bobmulder)

---

Top Contributors

[![bobmulder](https://avatars.githubusercontent.com/u/5465074?v=4)](https://github.com/bobmulder "bobmulder (29 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cakemanager-cakephp-whosonline/health.svg)

```
[![Health](https://phpackages.com/badges/cakemanager-cakephp-whosonline/health.svg)](https://phpackages.com/packages/cakemanager-cakephp-whosonline)
```

###  Alternatives

[friendsofcake/cakepdf

CakePHP plugin for creating and/or rendering Pdfs, several Pdf engines supported.

3752.1M3](/packages/friendsofcake-cakepdf)[cakephp/app

CakePHP skeleton app

3831.7M1](/packages/cakephp-app)[cakephp/bake

Bake plugin for CakePHP

11211.2M158](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M27](/packages/dereuromark-cakephp-ide-helper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
