vcian/pulse-active-sessions
Composer 安装命令:
composer require vcian/pulse-active-sessions
包简介
A Laravel Pulse card to show active user session.
关键字:
README 文档
README
Active Sessions card for Laravel Pulse
This card will show total number of sessions in application.
Installation
Require the package with Composer:
composer require vcian/pulse-active-sessions
Next, you should publish the Pulse configuration and migration files using the vendor:publish Artisan command:
php artisan vendor:publish --provider="Laravel\Pulse\PulseServiceProvider"
php artisan migrate
Register the recorder
Right now, the Composer dependencies will only be checked once per day. To run the checks you must add the PulseActiveSessionRecorder to the pulse.php file.
return [
// ...
'recorders' => [
+ \Vcian\Pulse\PulseActiveSessions\Recorders\PulseActiveSessionRecorder::class => [],
]
]
You also need to be running the pulse:check command.
Add to your dashboard
To add the card to the Pulse dashboard, you must first publish the vendor view.
Then, you can modify the dashboard.blade.php file:
<x-pulse>
+ <livewire:pulse_active_session cols='4' rows='2' />
<livewire:pulse.servers cols="full" />
<livewire:pulse.usage cols="4" rows="2" />
<livewire:pulse.queues cols="4" />
<livewire:pulse.cache cols="4" />
<livewire:pulse.slow-queries cols="8" />
<livewire:pulse.exceptions cols="6" />
<livewire:pulse.slow-requests cols="6" />
<livewire:pulse.slow-jobs cols="6" />
<livewire:pulse.slow-outgoing-requests cols="6" />
</x-pulse>
This feature allows you to dynamically set thresholds and display interactive color-coded indicators based on predefined threshold values. Easily configure these thresholds using the pulse.php config file for a visual representation of active sessions.
+ 'active_session_threshold' => 100,
To make pulse recorders will automatically capture entries based on framework events dispatched by Laravel, You must run the below command.
php artisan pulse:check
That's it!
Supported session drivers
- database
- file
- redis
- memcached
Not Supported
- Passport : This will not support when multiple providers used as authentication.It only while using single provider.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
We believe in
👇
ACT NOW
PERFECT IT LATER
CORRECT IT ON THE WAY.
Security
If you discover any security-related issues, please email ruchit.patel@viitor.cloud instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
vcian/pulse-active-sessions 适用场景与选型建议
vcian/pulse-active-sessions 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 82.31k 次下载、GitHub Stars 达 114, 最近一次更新时间为 2023 年 12 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「session」 「laravel」 「pulse」 「active-session」 「laravel-pulse」 「active-user-session」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vcian/pulse-active-sessions 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vcian/pulse-active-sessions 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vcian/pulse-active-sessions 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Monitor disk size, file & directory count for Laravel Pulse
Monitor 404 pages within Laravel Pulse
Secure session middleware for Slim 3 framework
Non-I/O blocking PHP SessionHandler implementation using Nette/Caching with DI Extension for Nette framework
A Laravel Pulse card to track users & URL's that are being throttled by your Rate Limiters
Monitor 404 pages within Laravel Pulse
统计信息
- 总下载量: 82.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 115
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-20



