anourvalar/laravel-pulse
Composer 安装命令:
composer require anourvalar/laravel-pulse
包简介
Additional cards for Laravel Pulse
关键字:
README 文档
README
Installation
composer require anourvalar/laravel-pulse
Schedule (cron)
Add recorder to the config/pulse.php:
AnourValar\LaravelPulse\Recorders\ScheduleRecorder::class => [ 'enabled' => env('PULSE_ANOURVALAR_SCHEDULE_ENABLED', true), 'sample_rate' => env('PULSE_ANOURVALAR_SCHEDULE_SAMPLE_RATE', 1), 'ignore' => [], ],
Add card to the vendor/pulse/dashboard.blade.php:
<livewire:anourvalar.pulse.schedule cols="6" />
HTTP Requests (count & response time)
Add recorder to the config/pulse.php:
AnourValar\LaravelPulse\Recorders\HttpRequestsRecorder::class => [ 'enabled' => env('PULSE_ANOURVALAR_HTTP_REQUESTS_ENABLED', true), 'sample_rate' => env('PULSE_ANOURVALAR_HTTP_REQUESTS_SAMPLE_RATE', 1), 'ignore' => ['#/admin/#', '#/livewire/#'], ],
Add cards to the vendor/pulse/dashboard.blade.php:
<livewire:anourvalar.pulse.http-requests-count cols="6" /> <livewire:anourvalar.pulse.http-requests-avg cols="6" />
Optionally: To record the latency between the web server and the PHP worker, configure your web server to add a timestamp header:
fastcgi_param HTTP_X_REQUEST_START $msec; # fpm
proxy_set_header X-Request-Start $msec; # octane
Database (queries)
Add recorder to the config/pulse.php:
AnourValar\LaravelPulse\Recorders\DatabaseRecorder::class => [ 'enabled' => env('PULSE_ANOURVALAR_DATABASE_ENABLED', true), 'sample_rate' => env('PULSE_ANOURVALAR_DATABASE_SAMPLE_RATE', 1), 'ignore' => ['#pulse_#'], ],
Add card to the vendor/pulse/dashboard.blade.php:
<livewire:anourvalar.pulse.database cols="6" />
Ping (Response time & status code)
Add recorder to the config/pulse.php:
AnourValar\LaravelPulse\Recorders\PingRecorder::class => [ 'enabled' => env('PULSE_ANOURVALAR_PING_ENABLED', true), 'urls' => ['/'], ],
Add card to the vendor/pulse/dashboard.blade.php:
<livewire:anourvalar.pulse.ping cols="6" />
FPM (Workers count)
Add recorder to the config/pulse.php:
AnourValar\LaravelPulse\Recorders\FpmRecorder::class => [ 'enabled' => env('PULSE_ANOURVALAR_FPM_ENABLED', true), 'sample_rate' => env('PULSE_ANOURVALAR_FPM_SAMPLE_RATE', 1), ],
Add card to the vendor/pulse/dashboard.blade.php:
<livewire:anourvalar.pulse.fpm cols="6" />
Slow Commands
Add recorder to the config/pulse.php:
AnourValar\LaravelPulse\Recorders\SlowCommandsRecorder::class => [ 'enabled' => env('PULSE_ANOURVALAR_SLOW_COMMANDS_ENABLED', true), 'sample_rate' => env('PULSE_ANOURVALAR_SLOW_COMMANDS_SAMPLE_RATE', 1), 'threshold' => env('PULSE_ANOURVALAR_SLOW_COMMANDS_THRESHOLD', 1000), 'ignore' => ['#^tinker#', '#^schedule\:#', '#^horizon\:#', '#invoke\-serialized\-closure#'], ],
Add card to the vendor/pulse/dashboard.blade.php:
<livewire:anourvalar.pulse.slow-commands cols="6" />
Latency Jobs
Add recorder to the config/pulse.php:
AnourValar\LaravelPulse\Recorders\LatencyJobsRecorder::class => [ 'enabled' => env('PULSE_ANOURVALAR_LATENCY_JOBS_ENABLED', true), 'sample_rate' => env('PULSE_ANOURVALAR_LATENCY_JOBS_SAMPLE_RATE', 1), 'threshold' => env('PULSE_ANOURVALAR_LATENCY_JOBS_THRESHOLD', 10000), 'ignore' => ['#pulse#'], ],
Add card to the vendor/pulse/dashboard.blade.php:
<livewire:anourvalar.pulse.latency-jobs cols="6" />
anourvalar/laravel-pulse 适用场景与选型建议
anourvalar/laravel-pulse 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 6.81k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 09 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「performance」 「http」 「mysql」 「code」 「time」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 anourvalar/laravel-pulse 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 anourvalar/laravel-pulse 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 anourvalar/laravel-pulse 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
g4 application profiler package
repository php library
CSS/Javascript Minificator, Compressor and Concatenator for TYPO3 - highly configurable frontend asset optimization for CSS/JS merging, minification and compression with optional body parsing, async/defer loading, inline output, data-ignore exclusions, SRI integrity validation/calculation, external
WordPress mu-plugin to remove jQuery Migrate from the list of jQuery dependencies and to allow jQuery to enqueue before </body> instead of in the <head>.
Store your language lines in the database, yaml or other sources
统计信息
- 总下载量: 6.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-27






