PHP code example of wired00 / custom-queue
1. Go to this page and download the library: Download wired00/custom-queue 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/ */
wired00 / custom-queue example snippets
namespace App\Jobs;
use Wired00\CustomQueue\Contracts\CustomQueueJobHandler as HandlerContract;
use Illuminate\Queue\Jobs\Job;
class ProcessSQS implements HandlerContract
{
/**
* Execute the job.
*
* @param Job $job
* @param null $data
* @return void
*/
public function handle(Job $job, $data = null)
{
// process code (you can access job payload via $data)
// $job->delete();
}
}