1. Go to this page and download the library: Download kapersoft/cron-job-api 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/ */
kapersoft / cron-job-api example snippets
use Kapersoft\CronJobApi\Client;
$client = new Client($apiKey); // Authorization: Bearer <token>
use Kapersoft\CronJobApi\Job;
$jobList = $client->list();
foreach ($jobList->jobs as $job) {
/** @var Job $job */
echo $job->jobId.' '.$job->title.PHP_EOL;
}