PHP code example of arakaki-yuji / backjob
1. Go to this page and download the library: Download arakaki-yuji/backjob 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/ */
arakaki-yuji / backjob example snippets
php
$backjob = new \Backjob\Backjob::factory($storageAccountName, $queueName, $accessKey);
php
$params = ['message' => 'Hello Backjob'];
$job = CustomeJob::makeJob($params);
$backjob->queue($job);
php
$backjob = new \Backjob\Backjob::factory($storageAccountName, $queueName, $accessKey);
$backjob->run(); // => 'Hello Backjob'