PHP code example of aoux / system-monitor

1. Go to this page and download the library: Download aoux/system-monitor library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aoux / system-monitor example snippets


// resources/views/admin/monitor/index.blade.php

@extends('layout.admin.master')

@section('content')
    <div class="system-monitor">
        @if(config('system-monitor.cache.enabled'))
            <div class="cache-status">
                <h3>Cache Status</h3>
                <p>Total Keys: {{ $cacheStatus['total_keys'] }}</p>
                <p>Memory Usage: {{ $cacheStatus['memory_usage'] }}</p>
            </div>
        @endif

        @if(config('system-monitor.queue.enabled'))
            <div class="queue-status">
                <h3>Queue Status</h3>
                <p>Pending Jobs: {{ $queueStatus['pending_jobs'] }}</p>
                <p>Failed Jobs: {{ $queueStatus['failed_jobs'] }}</p>
            </div>
        @endif
    </div>
@endsection

// routes/web.php
Route::get('/admin/monitor', [MonitorController::class, 'index'])
    ->name('admin.monitor.index');
bash
php artisan vendor:publish --provider="Aoux\SystemMonitor\SystemMonitorServiceProvider"
bash
php artisan system:monitor