PHP code example of zhangrb / time-even

1. Go to this page and download the library: Download zhangrb/time-even 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/ */

    

zhangrb / time-even example snippets


$config = [
    'host' => 'localhost',
	'port' => '6379',
];
$app = new TimeEven(null, $config);


$job = (new TimeEvenJob())->withPayload(['test' => 123]);


$app->dispatch($job);