PHP code example of bitweb / zf2-cron-module
1. Go to this page and download the library: Download bitweb/zf2-cron-module 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/ */
bitweb / zf2-cron-module example snippets
'cronModule' => [
'phpPath' => 'php',
'scriptPath' => '/path/to/application/public/folder/',
'jobs' => [
[
'command' => 'index.php application cron do-job',
'schedule' => '* * * * *'
],
[
'command' => 'index.php application cron do-another-job',
'schedule' => '0 * * * *'
]
]
]
sh
php composer.phar
sh
php index.php cron module start