PHP code example of struktal / struktal-job-executor
1. Go to this page and download the library: Download struktal/struktal-job-executor 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/ */
struktal / struktal-job-executor example snippets
\struktal\jobexecutor\JobExecutor::setJobDirectory(__DIR__ . "/jobs");
\struktal\jobexecutor\JobExecutor::execute("my-job");
bash
cd /path/to/your/app/jobs && php my-job.php > /dev/null 2>&1 &