PHP code example of geowrgetudor / disk-metrics

1. Go to this page and download the library: Download geowrgetudor/disk-metrics 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/ */

    

geowrgetudor / disk-metrics example snippets


return [
    /**
     * Track disks defined in filesystems.php config file.
     * Support only 'local' or 's3' driver.
     *
     * You can pass an array ['directories', 'files'] ONLY to a local disk
     * which will determine what to be counted. To count both,
     * you can pass an empty array.
     */
    'disks' => [
        'local' => [],
        // 'public' => [],
        // 's3' => []
    ],

    /**
     * How often (in minutes) should the Laravel Pulse capture data?
     * The value should be greated than 1!
     * Default: 10
     */
    'record_interval' => 10
];

<livewire:disk-metrics cols="4" rows="2" />
bash
php artisan vendor:publish --tag="disk-metrics-config"
bash
php artisan vendor:publish --tag="disk-metrics-views"

return [
    // ...

    'recorders' => [
        // Existing recorders...

        \Geow\DiskMetrics\Recorders\DiskRecorder::class => [
            'enabled' => env('GEOW_DISK_METRICS', true),
        ]
    ]
]