1. Go to this page and download the library: Download bref/symfony-messenger 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/ */
declare(strict_types=1);
use Bref\Symfony\Messenger\Service\Sqs\SqsConsumer;
el->boot();
// Return the Bref consumer service
return $kernel->getContainer()->get(SqsConsumer::class);
declare(strict_types=1);
use Bref\Symfony\Messenger\Service\Sqs\SqsConsumer;
use Symfony\Component\Dotenv\Dotenv;
EBUG']);
$kernel->boot();
// Return the Bref consumer service
return $kernel->getContainer()->get(SqsConsumer::class);
use Symfony\Component\Messenger\MessageBus;
use Symfony\Component\Messenger\Bridge\AmazonSqs\Transport\AmazonSqsFifoStamp;
/* @var MessageBus $messageBus */
$messageBus->dispatch(new MyAsyncMessage(), [new AmazonSqsFifoStamp('my-group-message-id', 'my-deduplication-id')]);
declare(strict_types=1);
use Bref\Symfony\Messenger\Service\Sns\SnsConsumer;
el->boot();
// Return the Bref consumer service
return $kernel->getContainer()->get(SnsConsumer::class);
declare(strict_types=1);
use Bref\Symfony\Messenger\Service\Sns\SnsConsumer;
use Symfony\Component\Dotenv\Dotenv;
DEBUG']);
$kernel->boot();
// Return the Bref consumer service
return $kernel->getContainer()->get(SnsConsumer::class);
declare(strict_types=1);
use Bref\Symfony\Messenger\Service\EventBridge\EventBridgeConsumer;
Return the Bref consumer service
return $kernel->getContainer()->get(EventBridgeConsumer::class);
declare(strict_types=1);
use Bref\Symfony\Messenger\Service\EventBridge\EventBridgeConsumer;
use Symfony\Component\Dotenv\Dotenv;
l->boot();
// Return the Bref consumer service
return $kernel->getContainer()->get(EventBridgeConsumer::class);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.