PHPackages                             mrehman23/aws-sqs - 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. mrehman23/aws-sqs

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

mrehman23/aws-sqs
=================

PHP package for interacting with Amazon Simple Queue Service (SQS)

0.0.6(2y ago)02.5kMITPHPPHP &gt;=7.2

Since Aug 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mrehman23/aws-sqs)[ Packagist](https://packagist.org/packages/mrehman23/aws-sqs)[ RSS](/packages/mrehman23-aws-sqs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

AWS SQS Queue PHP Package
=========================

[](#aws-sqs-queue-php-package)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)

This package provides a simple and convenient way to interact with Amazon Simple Queue Service (SQS) using PHP.

Features
--------

[](#features)

- Send messages to an SQS queue.
- Receive messages from an SQS queue.
- Delete messages from an SQS queue.

Requirements
------------

[](#requirements)

- PHP 7.2 or later
- AWS SDK for PHP (aws/aws-sdk-php)
- AWS account credentials set up (Access Key ID and Secret Access Key)

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

[](#installation)

You can install this package via Composer:

```
composer require mrehman23/aws-sqs
```

Examples
--------

[](#examples)

```
require 'vendor/autoload.php';
use AwsSqs\SqsMessenger;
$AwsConfig = [
    'AWS_KEY'=>'', //You should put your AWS_KEY
    'AWS_SECRET_KEY'=>'', //You should put your AWS_SECRET_KEY
    'AWS_REGION'=>'eu-west-1', //You should put your AWS_REGION
    'API_VERSION'=>'2012-11-05'
];
$messenger = new SqsMessenger($AwsConfig);
// $messenger->RetryTimesOnFail = 2;
// $messenger->WaitBeforeRetry = 1; //seconds
$queue = "";
$message = "This is a message for SQS";
$messageAttributes['params'] = [
    'DataType' => 'String',
    'StringValue' => json_encode($params)
];
$delaySeconds = 10;
$messageGroupId = '';
$messageDeduplicationId = '';
$result = $messenger->publish($queue, $message, $messageAttributes, $delaySeconds, $messageGroupId, $messageDeduplicationId);

```

### Listener

[](#listener)

```
require 'vendor/autoload.php';
use AwsSqs\SqsWorker;

$worker = new SqsWorker($this->awsConfig['credentials']);
$worker->listen(
    $this->awsConfig['queue'],
    [$this, 'processMessage'],
    [$this, 'errorHandler']
);

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 85.7% 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 ~11 days

Total

2

Last Release

990d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/054581c61119ee4568866b8efc60a56456ab18769e005c36b1b4aed53d25ad91?d=identicon)[mrehman23](/maintainers/mrehman23)

---

Top Contributors

[![f3matirehman](https://avatars.githubusercontent.com/u/141241662?v=4)](https://github.com/f3matirehman "f3matirehman (6 commits)")[![mrehman23](https://avatars.githubusercontent.com/u/38315196?v=4)](https://github.com/mrehman23 "mrehman23 (1 commits)")

---

Tags

phpawssqsMessenger

### Embed Badge

![Health badge](/badges/mrehman23-aws-sqs/health.svg)

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

###  Alternatives

[dusterio/laravel-aws-worker

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

3105.7M](/packages/dusterio-laravel-aws-worker)[dusterio/laravel-plain-sqs

Custom SQS connector for Laravel that supports custom format JSON

1352.7M1](/packages/dusterio-laravel-plain-sqs)[bref/symfony-messenger

Symfony Messenger bridge to run with SQS and SNS on AWS Lambda with Bref

721.2M6](/packages/bref-symfony-messenger)[gilbitron/sqsd

A replica of the AWS Elastic Beanstalk worker SQS daemon (sqsd) in PHP

332.6k](/packages/gilbitron-sqsd)

PHPackages © 2026

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