PHPackages                             samuelterra22/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. [Caching](/categories/caching)
4. /
5. samuelterra22/laravel-users-online

ActiveLibrary[Caching](/categories/caching)

samuelterra22/laravel-users-online
==================================

This package will provide an online users management.

v0.0.5(3mo ago)2843MITPHPPHP ^8.2CI passing

Since Jul 16Pushed 3mo agoCompare

[ Source](https://github.com/samuelterra22/laravel-users-online)[ Packagist](https://packagist.org/packages/samuelterra22/laravel-users-online)[ RSS](/packages/samuelterra22-laravel-users-online/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (9)Versions (6)Used By (0)

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

[](#laravel-users-online)

[![Latest Version](https://camo.githubusercontent.com/e776c943e0b9837c03a04ca8d50013b21a55feb77f9e51600e7cea15f3f2a511/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616d75656c746572726132322f6c61726176656c2d75736572732d6f6e6c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samuelterra22/laravel-users-online)[![Total Downloads](https://camo.githubusercontent.com/72351926cffa876af63bddcf5011bca5c35668b492d6c348075f4050bf3918e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616d75656c746572726132322f6c61726176656c2d75736572732d6f6e6c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samuelterra22/laravel-users-online)[![License](https://camo.githubusercontent.com/37f56868143dfece5038197b63d8a0ceea107bf06107f1947723955870d0e970/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73616d75656c746572726132322f6c61726176656c2d75736572732d6f6e6c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samuelterra22/laravel-users-online)[![Tests](https://camo.githubusercontent.com/3522a3d3d91060cd1fd361dc0c9e8536c0a7681df6b5c908b94c55806f831a0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73616d75656c746572726132322f6c61726176656c2d75736572732d6f6e6c696e652f746573742e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/samuelterra22/laravel-users-online/actions)[![PHP Version](https://camo.githubusercontent.com/59a0845b07f447a601fd3abba2c92eef03d6010050f42a617752406ba07e9756/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73616d75656c746572726132322f6c61726176656c2d75736572732d6f6e6c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samuelterra22/laravel-users-online)

**Laravel Users Online** is a lightweight, high-performance package for tracking and managing online users in Laravel applications. Built with cache-based session management for real-time user presence detection.

🎯 Why Laravel Users Online?
---------------------------

[](#-why-laravel-users-online)

- **Zero Database Impact**: Cache-only storage eliminates database overhead
- **Real-time Tracking**: Instant user presence detection and updates
- **Laravel Native**: Built specifically for Laravel with full framework integration
- **Production Ready**: Battle-tested with comprehensive error handling
- **Developer Friendly**: Simple API with extensive documentation

📋 Requirements
--------------

[](#-requirements)

- **PHP**: 8.2+ (PHP 8.1, 8.2, 8.3 supported)
- **Laravel**: 9.x | 10.x | 11.x | 12.x
- **Cache Driver**: Any Laravel-supported cache driver (Redis, Memcached, Database, File)

🚀 Quick Installation
--------------------

[](#-quick-installation)

### Step 1: Install via Composer

[](#step-1-install-via-composer)

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

### Step 2: Add Trait to User Model

[](#step-2-add-trait-to-user-model)

```
