PHPackages                             zfr/zfr-eb-worker - 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. zfr/zfr-eb-worker

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

zfr/zfr-eb-worker
=================

Thin abstraction around AWS SQS for Elastic Beanstalk worker environments

6.1.0(8y ago)75.5k2[1 issues](https://github.com/zf-fr/zfr-eb-worker/issues)MITPHPPHP ^7.1

Since Dec 22Pushed 8y ago2 watchersCompare

[ Source](https://github.com/zf-fr/zfr-eb-worker)[ Packagist](https://packagist.org/packages/zfr/zfr-eb-worker)[ Docs](https://github.com/zf-fr/zfr-eb-worker)[ RSS](/packages/zfr-zfr-eb-worker/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (9)Versions (33)Used By (0)

ZfrEbWorker
===========

[](#zfrebworker)

[![Build Status](https://camo.githubusercontent.com/17ad0cbf12d03409209b7cd56ffb8eed42413bbcc86cf8fbc87b6f2d134c7363/68747470733a2f2f7472617669732d63692e6f72672f7a662d66722f7a66722d65622d776f726b65722e737667)](https://travis-ci.org/zf-fr/zfr-eb-worker)

ZfrEbWorker is a simple abstraction around SQS, aims to simplify the creation of app in Elastic Beanstalk.

Dependencies
------------

[](#dependencies)

- PHP 7.1+

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

[](#installation)

Installation of ZfrEbWorker is only officially supported using Composer:

```
php composer.phar require 'zfr/zfr-eb-worker:6.*'
```

How Elastic Beanstalk work?
---------------------------

[](#how-elastic-beanstalk-work)

You can learn more about how Elastic Beanstalk worker/CRON work here:

Note that Elastic Beanstalk automatically delete the message from the queue if you return a 200. That's why this package does not have any "deleteMessage".

Usage
-----

[](#usage)

### Library configuration

[](#library-configuration)

#### AWS configuration

[](#aws-configuration)

ZfrEbWorker expects that you registers the `Aws\Sdk` class to the container of your choice. You are free to configure the SDK the way you prefer, so ZfrEbWorker does not come with a default factory for that.

As an example, here is a simple `ContainerInterop` compatible factory:

```
