Download the PHP package coinvestor/laravel-batchsqs without Composer

On this page you can find all versions of the php package coinvestor/laravel-batchsqs. 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 laravel-batchsqs

Laravel-BatchSQS

SQS queue connector for Laravel which sends messages in batches.

Installation

To install:

composer require coinvestor/laravel-batchsqs

Then to publish config files:

artisan vendor:publish

(select the BatchSQSProvider option when prompted)

Usage

This package provides a queue connector called batch-sqs. Create a block inside connections as usual:

You can use all of the usual Laravel SQS queue config options. In addition, you can set batch_size to define how many messages will be included in each batch (once the batch is full, the messages will be released to the queue).

When the queue object is destroyed (e.g. at the end of the request lifecycle, when Laravel is shutting down), messages which are still waiting to be sent to the queue will be sent, even if the batch size limit has not been reached.

Modifying messages before release

When a batch of messages is released to the queue, CoInvestor\BatchSQS\Queues\Events\BatchMessageReleasingEvent is dispatched. To modify each message before it reaches the queue, simply define a listener which will inspect the message and then return an array which will be merged with the message before it is released:

Flushing the queue

You may wish to send batches to your queues before they are full, or discard them entirely. Here's how:


All versions of laravel-batchsqs with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^5.8||^6||^7||^8
aws/aws-sdk-php Version ^3
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 coinvestor/laravel-batchsqs contains the following files

Loading the files please wait ....