1. Go to this page and download the library: Download daun/laravel-uptime-ping 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/ */
daun / laravel-uptime-ping example snippets
return [
/*
| The URL to ping. If this is not set, the job will not run.
*/
'url' => env('UPTIME_PING_URL', null),
/*
| The frequency at which to ping the URL, in crontab syntax. @see https://crontab.guru for help
*/
'cron' => env('UPTIME_PING_CRON', '* * * * *'),
/*
| The HTTP method to use when pinging the URL.
*/
'method' => env('UPTIME_PING_METHOD', 'GET'),
/*
| The number of retries to attempt before failing.
*/
'retries' => 3,
/*
| The timeout in seconds before failing.
*/
'timeout' => 3,
/*
| Additional headers to send with the request.
*/
'headers' => [
// 'User-Agent' => 'Laravel Uptime Ping',
],
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.