PHP code example of mamitech / laravel-sqs-subscriber
1. Go to this page and download the library: Download mamitech/laravel-sqs-subscriber 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/ */
mamitech / laravel-sqs-subscriber example snippets
namespace App\Worker;
class UserVerifiedListener
{
public function handle($message) # THIS METHOD MUST EXISTS
{
$user = $message['user'];
$email = $user['email'];
.. your logic here ..
}
}
php artisan queue:work sqs-distributed
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.