PHPackages                             tedicela/sqs-simple - 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. tedicela/sqs-simple

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

tedicela/sqs-simple
===================

PHP package for consuming AWS SQS queue in the simple way

0.0.10(4y ago)1667.8k↑30%7[1 issues](https://github.com/tedicela/sqs-simple/issues)MITPHPPHP &gt;=5.5.9

Since Jan 26Pushed 4y ago1 watchersCompare

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

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

sqs-simple (PHP)
================

[](#sqs-simple-php)

PHP package for consuming AWS SQS queue in the simple way

Description
-----------

[](#description)

Inspired by the Rabbitmq PHP SDK I have made this PHP library that makes simple the usage of AWS Simple Queue Service. With just a few lines of codes you can make a worker that listens for messages into a queue(**long lived worker**). You can set parameters to tune costs(requests made on SQS). Also for publishing messages into a queue simple too.

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

[](#requirements)

- php &gt;=5.5.9

Installation via composer
-------------------------

[](#installation-via-composer)

You can add this library into your project using [Composer](https://getcomposer.org). If you don't have composer installed and want to install it then [download composer here](https://getcomposer.org/download/) and follow [how to install guide](https://getcomposer.org/doc/00-intro.md).

To add **sqs-simple** to your porject just excute on command line:

```
composer require tedicela/sqs-simple

```

Use cases
---------

[](#use-cases)

### How to publish messages into an SQS queue

[](#how-to-publish-messages-into-an-sqs-queue)

AWS SQS charges you for every request you do on that service. So you can tune SqsMessenger attributes to get the most reliable service and with lower costs.

**Example** (check the comments for explanations):

```
