PHPackages                             highideas/laravel-users-online - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. highideas/laravel-users-online

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

highideas/laravel-users-online
==============================

This package will provide an online users management.

3.0.1(6y ago)202117.5k↓43.5%43[3 issues](https://github.com/highideas/laravel-users-online/issues)[4 PRs](https://github.com/highideas/laravel-users-online/pulls)1MITPHP

Since Apr 13Pushed 3y ago6 watchersCompare

[ Source](https://github.com/highideas/laravel-users-online)[ Packagist](https://packagist.org/packages/highideas/laravel-users-online)[ RSS](/packages/highideas-laravel-users-online/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)Dependencies (8)Versions (19)Used By (1)

Laravel Users Online
====================

[](#laravel-users-online)

[![Latest Stable Version](https://camo.githubusercontent.com/9abfad5f744b7e273baced6bb2475c096fe8244ee6b36c928ae4289476b41066/68747470733a2f2f706f7365722e707567782e6f72672f6869676869646561732f6c61726176656c2d75736572732d6f6e6c696e652f762f737461626c65)](https://packagist.org/packages/highideas/laravel-users-online)[![Total Downloads](https://camo.githubusercontent.com/a3e5628b5a12c4e128b1f77feb567a60261abb386a6ead04196903896d89a922/68747470733a2f2f706f7365722e707567782e6f72672f6869676869646561732f6c61726176656c2d75736572732d6f6e6c696e652f646f776e6c6f616473)](https://packagist.org/packages/highideas/laravel-users-online)[![License](https://camo.githubusercontent.com/f71d811eacc06d7eefc48cf9abd3558ced6a29d0c72736197917cdd996384d05/68747470733a2f2f706f7365722e707567782e6f72672f6869676869646561732f6c61726176656c2d75736572732d6f6e6c696e652f6c6963656e7365)](https://packagist.org/packages/highideas/laravel-users-online)[![Build Status](https://camo.githubusercontent.com/0038b5a4d9cd6e8a83cd45d6bea1b62b2a453e8be123f208ab948de06a22a9d5/68747470733a2f2f7472617669732d63692e6f72672f6869676869646561732f6c61726176656c2d75736572732d6f6e6c696e652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/highideas/laravel-users-online)[![Codacy Badge](https://camo.githubusercontent.com/9e40f5a888fd09cbacced734368fdfdad05ad45b717d9013b1f32a2f68c80aea/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f67726164652f3232653465623862373165313463323461646363643865646262643435363832)](https://www.codacy.com/app/HighIdeas/laravel-users-online)[![Codacy Badge](https://camo.githubusercontent.com/5559d8aaf6bc3a6242fb0404b17a4491f65532b6f948c02b5fd62056f049fe49/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f636f7665726167652f3232653465623862373165313463323461646363643865646262643435363832)](https://www.codacy.com/app/HighIdeas/laravel-users-online)[![StyleCI](https://camo.githubusercontent.com/eee7cd228c45d8dd51358cfb99d7f9f686b2fae324189ddc266f64ab9a01747d/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f35363132313635392f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/56121659)

Laravel compatibility
---------------------

[](#laravel-compatibility)

LaravelPackage6.x.x3.0.x5.8.x3.0.x5.7.x2.3.x5.6.x2.3.x5.5.x2.3.x5.4.x2.2.x5.3.x2.0.x5.2.x1.0.xInstallation
------------

[](#installation)

Add the new required package in your composer.json

```
"highideas/laravel-users-online": "^3.0"

```

Run `composer update` or `php composer.phar update`.

Or install directly via composer

```
composer require highideas/laravel-users-online

```

After composer command, add the trait in your model User in `app/User.php`:

```
class User extends Authenticatable
{
    use \HighIdeas\UsersOnline\Traits\UsersOnlineTrait;
...
```

Finally run `php artisan vendor:publish` for add the namespaces

Usage
-----

[](#usage)

For show the users online just use the method `allOnline()`:

```
$user = new User;
$user->allOnline();
```

Or if you want to check if a specific user is online use the method `isOnline()`:

```
$user = User::find($id);
$user->isOnline();
```

You can sort all users online with the methods `mostRecentOnline()` and `leastRecentOnline()`:

```
$user = new User;
$user->mostRecentOnline();
$user->leastRecentOnline();
```

Using with [Real-time Facades](https://laravel.com/docs/6.x/facades#real-time-facades):

```
use Facades\App\User as UserFacade;

UserFacade::mostRecentOnline();
UserFacade::leastRecentOnline();
```

**Installation and usage on last versions of framework:**

[Laravel 5.5 - 5.7](instructions/5.5-7.md)

[Laravel 5.4](instructions/5.4.md)

[Laravel 5.3](instructions/5.3.md)

[Laravel 5.2](instructions/5.2.md)

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 61.9% 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 ~106 days

Recently: every ~239 days

Total

13

Last Release

2462d ago

Major Versions

1.0.4 → 2.0.02016-10-04

2.4.0 → 3.0.02019-05-13

### Community

Maintainers

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

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

---

Top Contributors

[![GabrielDeveloper](https://avatars.githubusercontent.com/u/4581068?v=4)](https://github.com/GabrielDeveloper "GabrielDeveloper (73 commits)")[![marcodearaujo](https://avatars.githubusercontent.com/u/4330991?v=4)](https://github.com/marcodearaujo "marcodearaujo (36 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![gpweins](https://avatars.githubusercontent.com/u/3208966?v=4)](https://github.com/gpweins "gpweins (1 commits)")[![hassanalamibmx](https://avatars.githubusercontent.com/u/67870478?v=4)](https://github.com/hassanalamibmx "hassanalamibmx (1 commits)")

---

Tags

laravelUsers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/highideas-laravel-users-online/health.svg)

```
[![Health](https://phpackages.com/badges/highideas-laravel-users-online/health.svg)](https://phpackages.com/packages/highideas-laravel-users-online)
```

###  Alternatives

[abbasudo/pulse-users

Laravel Pulse Card for Users Chart

3377.5k](/packages/abbasudo-pulse-users)[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)[multicaret/laravel-inbox

Laravel messages and inbox system

301.0k](/packages/multicaret-laravel-inbox)

PHPackages © 2026

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