PHP code example of zorac / php-resque-scheduler
1. Go to this page and download the library: Download zorac/php-resque-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/ */
zorac / php-resque-scheduler example snippets
$in = 3600;
$args = ['id' => $user->id];
Scheduler::enqueueIn($in, 'email', 'SendFollowUpEmail', $args);
$time = 1332067214;
Scheduler::enqueueAt($time, 'email', 'SendFollowUpEmail', $args);
$datetime = new DateTime('2012-03-18 13:21:49');
Scheduler::enqueueAt($datetime, 'email', 'SendFollowUpEmail', $args);