PHP code example of level23 / laravel-aws-queue

1. Go to this page and download the library: Download level23/laravel-aws-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/ */

    

level23 / laravel-aws-queue example snippets


'providers' => [
    ...
    Level23\AwsQueue\AwsQueueServiceProvider::class
]

$app->register(Level23\AwsQueue\AwsQueueServiceProvider::class);

'sqs' => [
    'driver' => 'sqs-batch', //default is sqs
    'max' => 10,
    'handler' => 'Classname or binding name in ioc'
    ...
]


public function handle($data) {
    // Here you have the sqs jobs available to you
    $jobs = $this->job->getJobs();
}