PHP code example of vistik / health-checks
1. Go to this page and download the library: Download vistik/health-checks 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/ */
vistik / health-checks example snippets
$schedule->command('health:check')->hourly();
class IsFriday extends PhpSafari\Checks\HealthCheck
{
public function run(): bool
{
return Carbon::now()->isFriday();
}
}
bash
$ php artisan vendor:publish --tag=health
bash
$ php artisan health:check