kholil/nitik
Composer 安装命令:
composer require kholil/nitik
包简介
A Laravel package to track and aggregate application errors via custom log driver, with Filament dashboard.
README 文档
README
Nitik is a robust error tracking package for Laravel and Filament. It aggregates unique errors into a database and provides a sleek dashboard to manage them.
Features
- Unique Error Aggregation: Combines similar errors into a single record with a count of occurrences.
- Smart Stack Trace: Captures and filters stack traces for better readability, skipping internal baggage.
- Filament Integration: Comes with a ready-to-use Filament resource to monitor and manage errors.
- Infinite Loop Protection: Prevents recursive logging loops if the database or driver fails.
Requirements
- PHP:
^8.1 - Laravel:
^10.0 | ^11.0 | ^12.0 - Filament:
^4.0 | ^5.0
Installation
composer require kholil/nitik php artisan migrate
Configuration
1. Publish Config and Migrations
php artisan vendor:publish --tag=nitik
2. Add Log Channel
Add the nitik channel to your config/logging.php:
'channels' => [ 'stack' => [ 'driver' => 'stack', 'channels' => ['single', 'nitik'], 'ignore_exceptions' => false, ], 'nitik' => [ 'driver' => 'nitik', 'level' => 'debug', ], // ... ],
3. Register Filament Plugin
Add the NitikPlugin to your Filament Panel Provider:
use Kholil\Nitik\NitikPlugin; public function panel(Panel $panel): Panel { return $panel // ... ->plugins([ NitikPlugin::make(), ]); }
Artisan Commands
Clean up your error records periodically using these commands:
Clear Resolved Errors
Hapus semua error yang sudah ditandai sebagai 'Resolved'.
php artisan nitik:clear-resolved
Prune Old Errors
Hapus error lama berdasarkan jumlah hari (default: 30 hari).
php artisan nitik:prune --days=30
Configuration Options
Edit config/nitik.php to customize behavior:
log_levels: Array of levels (e.g.,error,critical) to capture.ignore_exceptions: List of exception classes to skip (e.g.,NotFoundHttpException).navigation_group: Label for Filament navigation grouping (default:null).
License
The MIT License (MIT). Please see License File for more information.
kholil/nitik 适用场景与选型建议
kholil/nitik 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.32k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2026 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「filament」 「error-tracking」 「kholil」 「nitik」 「log-driver」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kholil/nitik 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kholil/nitik 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kholil/nitik 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Kanbino Bug Tracking SDK for Laravel - Error capture, breadcrumbs, and session replay
Alfabank REST API integration
Ship logs and exceptions from a Laravel app to a Log Central server.
Database-driven onboarding for Filament: progress checklists and guided spotlight tours, translatable to any locale.
Laravel runtime error & slow SQL monitoring SDK for moo-scaffold-cloud
Laravel package for Accurate Online API integration.
统计信息
- 总下载量: 1.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-10
