Download the PHP package samuelterra22/laravel-users-online without Composer

On this page you can find all versions of the php package samuelterra22/laravel-users-online. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-users-online

Laravel Users Online

Latest Version Total Downloads License Tests PHP Version

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?

๐Ÿ“‹ Requirements

๐Ÿš€ Quick Installation

Step 1: Install via Composer

Step 2: Add Trait to User Model

Step 3: Auto-Discovery (Laravel 5.5+)

The package uses Laravel's auto-discovery. No manual registration required.

Optional: Publish Configuration

๐Ÿ’ก Basic Usage Examples

Check User Online Status

Get All Active Users

User Activity Ordering

๐Ÿ”ง Advanced Usage

Manual Session Management

Real-time Facades Integration

Laravel Livewire Integration

โšก Features & Benefits

Automatic Event Handling

Performance Optimizations

Security Features

๐Ÿ“š Complete API Reference

Core Methods

Method Description Parameters Return Type
isOnline() Check if user is currently active None bool
allOnline() Get all online users collection None Collection
mostRecentOnline() Users by most recent activity None array
leastRecentOnline() Users by least recent activity None array
setCache() Mark user as online int $seconds = 300 bool
setCacheWithConfig() Mark user as online using config ?int $seconds = null bool
pullCache() Remove user from online list None void
getCachedAt() Get user's last activity timestamp None int
getCacheContent() Get complete cache data None array

Configuration Options

Environment Variables

Add to your .env file:

๐Ÿงช Testing & Quality Assurance

Run Tests

Code Quality Standards

๐ŸŽฏ Use Cases & Examples

Real-time Chat Applications

Admin Dashboards

User Presence Indicators

๐Ÿ”’ Security & Privacy

Data Protection

Production Recommendations

๐Ÿ“ˆ Performance Benchmarks

Metric Database Only With Cache Improvement
Response Time 150ms 5ms 97% faster
Memory Usage 25MB 2MB 92% reduction
Database Queries 15+ 1 93% fewer queries
Concurrent Users 100 10,000+ 100x scalability

๐Ÿ”„ Migration from Other Packages

From laravel-online-users

From Custom Database Solutions

๐Ÿ› ๏ธ Troubleshooting

Common Issues

Cache Not Working

Users Not Showing Online

Performance Issues

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

Contribution Guidelines

๐Ÿ“œ License

This package is open-sourced software licensed under the MIT license.

๐Ÿ†˜ Support & Community

Professional Support

For enterprise support, custom implementations, or consulting services, please contact [email protected].

๐Ÿ“… Changelog

Please see CHANGELOG for more information on recent changes.

๐Ÿ”— Related Packages


โญ Star this repository if you find it helpful! It helps others discover this package.

Keywords: Laravel, PHP, Online Users, Real-time Tracking, Cache, Session Management, User Presence, Activity Monitoring, Performance, Redis, Memcached


All versions of laravel-users-online with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package samuelterra22/laravel-users-online contains the following files

Loading the files please wait ...