Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Corewatch Laravel Package

hamzi/corewatch

CoreWatch is a zero-dependency DevOps dashboard for Laravel that reads /proc directly to monitor CPU, RAM, and disk, streams huge logs with O(1) memory, runs whitelisted commands safely, sends alerts, and exposes a health endpoint.

View on GitHub
Deep Wiki
Context7
v2.2.0

Summary

Release 2.2.0 introduces system diagnostic tooling, asynchronous background alert queuing, static analysis upgrades to PHPStan Level 8, and enhanced system resilience with strict Throwable exception handling across all collectors and repositories.

Changes

  • Added SystemDoctor service and php artisan corewatch:doctor command for comprehensive server diagnostics across System, Database, Cache, Queue, Scheduler, Alerts, and Security.
  • Added php artisan corewatch:test-alert command with interactive diagnostic feedback to verify Slack and Telegram channel delivery.
  • Added asynchronous alert dispatching via SendQueuedAlertJob implementing ShouldQueue with backoff retries, configurable via COREWATCH_NOTIFICATIONS_QUEUE.
  • Added doctor() method to CoreWatchManager and CoreWatch Facade for programmatic diagnostic checks.
  • Hardened exception handling across collectors, controllers, repositories, and actions from \Exception to \Throwable to prevent unhandled fatal application crashes.
  • Upgraded PHPStan static analysis configuration to Level 8 with zero errors.
  • Resolved Composer dependency security advisories and expanded test suite to 32 tests with 211 assertions.
  • Enforced clean code standards and removed emoji artifacts across all code, commands, and repository documentation.
v2.1.1

🛠️ CoreWatch v2.1.1 — Hotfix

Fixes the dashboard showing raw translation keys like corewatch::title instead of readable text.


🐛 Fixed

  • Translation keys in UI — corewatch::title, corewatch::subtitle, etc. no longer appear when lang files fail to load
  • Translation helper with built-in English fallbacks
  • [@cw](https://github.com/cw) Blade directive for reliable localized strings
  • config.labels passed to Alpine.js for dynamic UI text
  • Disk workspace path display (no more aggressive truncation)
  • Process table PID/CPU/MEM alignment
  • "Total Tables Count" → "Table Count"

📦 Update

composer update hamzi/corewatch
php artisan view:clear
php artisan cache:clear

If you published views earlier:

php artisan vendor:publish --tag=corewatch-views --force

Full diff: https://github.com/hamdyelbatal122/CoreWatch/compare/v2.1.0...v2.1.1

What's Changed

New Contributors

Full Changelog: https://github.com/hamdyelbatal122/corewatch/compare/v2.1.0...v2.1.1

v2.1.0

🛡️ CoreWatch v2.1.0

Production-grade monitoring upgrade: static analysis, Prometheus export, SSL expiry alerts, failed jobs tracking, scheduler heartbeat, audit logging, and Arabic localization.


⚡ Quick Start

composer require hamzi/corewatch:^2.1
php artisan corewatch:install
// routes/console.php
Schedule::command('corewatch:heartbeat')->everyMinute();
Schedule::command('corewatch:check-health')->everyFiveMinutes();

✨ What's New

📊 Monitoring & Integrations

Feature Endpoint / Command
Prometheus export GET /corewatch/api/metrics/prometheus
SSL certificate expiry Ops Insights widget
Failed queue jobs Ops Insights widget
Scheduler heartbeat php artisan corewatch:heartbeat

🔒 Security & Reliability

  • Audit log for every service command execution
  • Rate limiting on all API routes (60 req/min)
  • Metrics caching to reduce /proc reads
  • Dangerous commands disabled by default (redis_flush, opcache_reset, etc.)

🌍 Developer Experience

  • Arabic (ar) + English (en) translations
  • PHPStan Level 5 in CI
  • Dependabot + automated release workflow
  • 18 automated tests (up from 13)
  • Deployment Guide

🖼️ Dashboard Preview

CoreWatch Dashboard


📦 Configuration

COREWATCH_METRICS_CACHE_TTL=5
COREWATCH_PROMETHEUS_ENDPOINT=true
COREWATCH_SSL_WARNING_DAYS=14
COREWATCH_AUDIT_LOG=true

Arabic UI: set 'locale' => 'ar' in config/app.php


🔗 Links

Full Changelog: https://github.com/hamdyelbatal122/corewatch/compare/v2.0.0...v2.1.0

v2.0.0

🛡️ CoreWatch v2.0.0

The biggest release yet. CoreWatch is now a production-grade Laravel package built on Clean Architecture — designed for developers who want embedded DevOps monitoring without external daemons.


⚡ Quick Start

composer require hamzi/corewatch
php artisan corewatch:install

Open /corewatch — done.


✨ What's New

🏗️ Clean Architecture

  • Contracts — 6 interfaces for dependency inversion
  • Domain — HealthThresholdEvaluator, Alert value object, AlertSeverity enum
  • Application — 4 Actions + DTOs (LogFilterDto, DashboardConfigDto)
  • Infrastructure — 8 metric collectors, 3 repositories, Slack/Telegram notifiers
  • Http — thin controllers, Form Requests, centralized middleware

👨‍💻 Developer API

use Hamzi\CoreWatch\Facades\CoreWatch;

CoreWatch::metrics();
CoreWatch::health();      // uptime monitors & K8s probes
CoreWatch::readLogs('laravel');
CoreWatch::runService('cache_clear');

🔌 New Endpoints & Commands

Feature Description
GET /corewatch/api/health Returns 200 healthy / 503 degraded
php artisan corewatch:install One-command setup with production checklist
ThresholdBreached event Hook PagerDuty, Discord, email, or any channel

📚 Documentation


🐛 Bug Fixes

  • Artisan queue restart now uses queue:restart (was broken with php artisan queue:restart)
  • Authorization gate config documented correctly
  • README badges point to the correct repository

📦 Requirements

  • PHP ^8.2
  • Laravel ^11.0 | ^12.0 | ^13.0

🔗 Links


Full diff: https://github.com/hamdyelbatal122/CoreWatch/compare/v1.0.5...v2.0.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style