PHPackages                             pmg/sqs-transport - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. pmg/sqs-transport

ActiveLibrary[Queues &amp; Workers](/categories/queues)

pmg/sqs-transport
=================

A Symfony Messenger transport for SQS

v0.5.0(2y ago)140.6kMITPHPPHP ^8.2CI failing

Since Sep 26Pushed 2y ago12 watchersCompare

[ Source](https://github.com/AgencyPMG/symfony-sqs-transport)[ Packagist](https://packagist.org/packages/pmg/sqs-transport)[ RSS](/packages/pmg-sqs-transport/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (10)Versions (7)Used By (0)

SQS Symfony Messenger Transport
===============================

[](#sqs-symfony-messenger-transport)

⚠️ **DEPRECATION NOTICE**: This project is no longer maintained and might not work as expected. Use [Alli Platform Bundle](https://github.com/AgencyPMG/alli-platform-bundle/tree/master/src/SqsTransport) instead. Check this migration guide for more information: [Migrating from PMG SQS Transport to Alli Platform Bundle](https://agencypmg.atlassian.net/wiki/spaces/ALLISDK/pages/3012395009/Alli+Platform+Bundle+0.32+Upgrade+Guide)

---

Installation
------------

[](#installation)

```
composer require pmg/sqs-transport

```

Bundle Usage
------------

[](#bundle-usage)

Add the `PMG\SqsTransport\Bundle\PmgSqsTransportBundle` to your application's kernel. By default the transport bundle will use an `aws.sqs` service when creating the transport factory and, by extension, the transport instances. This service name is configurable, but it *should* place nice with the AWS Bundle.

```
class AppKernel extends Kernel
{
    // ...

    public function registerBundles()
    {
        $bundles = [
            new \Aws\Symfony\AwsBundle(),
            new \PMG\SqsTransport\Bundle\PmgSqsTransportBundle(),
        ];

        // ...

        return $bundles;
    }
}
```

### `SqsClient` Service Configuration

[](#sqsclient-service-configuration)

If you're not using the `AwsBundle` and would like to manually specify a service that contains an instance of `Aws\Sqs\SqsClient`, some bundle configuration is necessary.

```
pmg_sqs_transport:
  sqs_client_service: your_sqs_service_id
```

Messenger Configuration
-----------------------

[](#messenger-configuration)

```
framework:
  # ...
  messenger:
    transports:
      # will create a transport with a queue URL of
      # https://queue.amazonaws.com/80398EXAMPLE/MyQueue
      sqs: sqs://queue.amazonaws.com/80398EXAMPLE/MyQueue

      # this will also make an https URL:
      # https://queue.amazonaws.com/80398EXAMPLE/MyQueue
      sqs_https: sqs+https://queue.amazonaws.com/80398EXAMPLE/MyQueue

      # or you may wish to use `http://`, like if running a localstack
      # instance for local dev. Queue url would be http://localhost:4576/queue/MyQueue
      sqs_http: sqs+http://localhost:4576/queue/MyQueue

      # specify how many message to receive at once with query params
      # must be >= 1 and dispatch(new YourMessage(), [
  new SqsStringAttributeStamp('stringAttributeName', 'attributeValue'),
  new SqsNumberAttributeStamp('numberAttributeName', 123),
]);
```

**SQS Has a limit of 10 attributes per message**, but the transport will generally use at least one attribute to send the `headers` from the transport serializer.

On Retries
----------

[](#on-retries)

The symfony messenger worker modifies an envelope with some retry metadata. Since messages in SQS cannot be modified in place, we just put a new message into the queue when that happens and the subsequent call to `ack` removes the existing message.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 93.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~318 days

Recently: every ~189 days

Total

6

Last Release

873d ago

PHP version history (2 changes)v0.2.0PHP ^8.0

v0.5.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/d396af79150164dd4d28f3e816b377e2f3c04df431d8338477517efa0013664c?d=identicon)[chrisguitarguy](/maintainers/chrisguitarguy)

---

Top Contributors

[![chrisguitarguy](https://avatars.githubusercontent.com/u/1010392?v=4)](https://github.com/chrisguitarguy "chrisguitarguy (31 commits)")[![WebCu](https://avatars.githubusercontent.com/u/3429093?v=4)](https://github.com/WebCu "WebCu (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pmg-sqs-transport/health.svg)

```
[![Health](https://phpackages.com/badges/pmg-sqs-transport/health.svg)](https://phpackages.com/packages/pmg-sqs-transport)
```

###  Alternatives

[symfony/amqp-messenger

Symfony AMQP extension Messenger Bridge

29457.9M99](/packages/symfony-amqp-messenger)[symfony/doctrine-messenger

Symfony Doctrine Messenger Bridge

53192.6M232](/packages/symfony-doctrine-messenger)[symfony/redis-messenger

Symfony Redis extension Messenger Bridge

21748.1M53](/packages/symfony-redis-messenger)[symfony/amazon-sqs-messenger

Symfony Amazon SQS extension Messenger Bridge

4613.5M20](/packages/symfony-amazon-sqs-messenger)[dusterio/laravel-aws-worker

Run Laravel (or Lumen) tasks and queue listeners inside of AWS Elastic Beanstalk workers

3075.8M](/packages/dusterio-laravel-aws-worker)[jwage/phpamqplib-messenger

Symfony messenger transport for the php-amqplib/php-amqplib library.

87201.9k1](/packages/jwage-phpamqplib-messenger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
