authanram / nova-system-resources

Display the system usage in Laravel-Nova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Laravel Nova tool to show system resources

Total Downloads Latest Stable Version License

This Nova tool gives you a live overview of your RAM and CPU usage of your system.

screenshot of the backup tool

Requirements

You must use either Linux, MacOS or Windows.

shell_exec must not be disabled in your php.ini. Make sure that disabled_functions does not contain shell_exec.

Installation

You can install the nova tool in to a Laravel app that uses Nova via composer:

composer require gijsg/system-resources

Next up, you must register the tool with Nova. This is typically done in the cards method of the NovaServiceProvider.

// in app/Providers/NovaServiceProvder.php

// ...

protected function cards()
{
    return [
        // ...
        new \GijsG\SystemResources\SystemResources('ram'),
        new \GijsG\SystemResources\SystemResources('cpu'),
    ];
}

You can specify the width of the cards using the nova card width notation: 1/2, 1/4, full etc.

new \GijsG\SystemResources\SystemResources('ram', '1/3'),

The MIT License (MIT). Please see License File for more information.

Support us

Direct Insight screenshot

API response invalid? We notify you instantly! Direct Insight monitors your API making sure it behaves like you expect it does. Be the first to know when your API does not work as expected.

About

Display the system usage in Laravel-Nova

License:MIT License


Languages

Language:PHP 71.0%Language:JavaScript 22.6%Language:Vue 5.0%Language:SCSS 1.4%