Download the PHP package swiftchase/queue-sqs-s3event without Composer

On this page you can find all versions of the php package swiftchase/queue-sqs-s3event. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package queue-sqs-s3event

S3EventQueue Zend Framework 2 Module

Version 0.1 created by Marcus Welz.

Purpose

This module allows handling of SQS event notifications generated by S3.

For example, you might allow users to upload directly to an S3 bucket, and need to know when new file uploads complete in order to process them.

Requirements

Installation

Add the library to composer:

$ composer require "swiftchase/queue-sqs-s3event:*"

Then, add the S3EventQueue module in your config/application.config.php. Afterwards, the S3EventQueue\Queue\S3EventQueueFactory is ready to manage SQS queues that contain S3 events notifications.

Follow the SlmQueueSqs documentation.

How does this work?

The excellent SlmQueue allows for multiple queue backends, as well as multiple job types per queue. This is achieved by persisting metadata (the job class), and instantiating the correct job during unserialization. This happens in SlmQueue\Queue\AbstractQueue::unserializeJob.

The events generated by AWS obviously don't follow this format, so we need a way of overriding the job that gets instantiated, hence the need for the custom S3EventQueue, which is configured to a single job type.

Limitations / To-dos

It is expected that there's only a single event coming in per each SQS message. The queue manager will throw an exception if that is not the case. I haven't found documentation that indicates that multiple events could get aggregated, nor that this isn't the case. And while throwing an exception isn't pretty, it prevents potential data loss by missing an event.

Instead of having this custom queue manager, SlmQueue could be refactored to allow configuration of what type of jobs a particular queue will contain. The default could be using metadata to infer job types, a separate strategy could be to specify exactly what job is contained and treat all job data as contents (no metadata).


All versions of queue-sqs-s3event with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
slm/queue-sqs Version ~0.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package swiftchase/queue-sqs-s3event contains the following files

Loading the files please wait ....