PHP code example of atymic / laravel-bulk-sqs-queue
1. Go to this page and download the library: Download atymic/laravel-bulk-sqs-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/ */
Illuminate\Support\Facades\Queue::bulk([
new \App\Jobs\Foo,
new \App\Jobs\Bar,
new \App\Jobs\Baz,
], '', 'default');
Illuminate\Support\Facades\Bus::batch([
new \App\Jobs\Foo,
new \App\Jobs\Bar,
new \App\Jobs\Baz,
])->name('My sqs batch')->onQueue('default')->dispatch();