1. Go to this page and download the library: Download auguzsto/job 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/ */
auguzsto / job example snippets
namespace Auguzsto\Job\Tests;
class Request
{
public static function slow(): void
{
sleep(60);
}
public static function slowBy(int $seconds): void
{
sleep($seconds);
}
}
Auguzsto\Job\Job;
use Auguzsto\Job\Tests\Request;
$job = new Job(Request::class, "slow");
$job->execute();
Auguzsto\Job\Job;
use Auguzsto\Job\Tests\Request;
$job = new Job(Request::class, "slowBy", [35]);
$worker = $job->execute();
echo $worker;
Auguzsto\Job\Job;
$job = new Job("Request", "slowBy", [35]);
$job->
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.