PHP code example of fredbradley / filesystem-health-check

1. Go to this page and download the library: Download fredbradley/filesystem-health-check 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/ */

    

fredbradley / filesystem-health-check example snippets


use FredBradley\FilesystemHealthCheck\Checks\FilesystemHealthCheck;

Health::checks([
    FilesystemHealthCheck::new()->disk('sftp')->name('Check SFTP'), // checks read and write
    FilesystemHealthCheck::new()->disk('ext01')->readOnly()->name('Check EXT01 Read Only'), // checks read only
]);