PHP code example of pogo / scheduler
1. Go to this page and download the library: Download pogo/scheduler 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/ */
pogo / scheduler example snippets
caddy
{
pogo_scheduler {
command php artisan schedule:run
dir /var/www/html
timeout 5m
overlap allow
shutdown_grace 30s
}
}
bash
php artisan octane:frankenphp --caddyfile=Caddyfile
# or
./frankenphp run