Download the PHP package timmylindh/laravel-beanstalk-worker without Composer

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

laravel-beanstalk-worker

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Provides functionality to utilize Laravel SQS queues and cron jobs in AWS Elastic Beanstalk worker environments.

The package supports all Laravel queue and cron features, such as retries, backoff, delay, release, max tries, timeout, etc.

Installation

Requirements:

Install the package:

Publish config (optional):

Publish EB deploy hooks (Amazon Linux 2023):

Automatic setup

Recommended. Set WORKER_TIMEOUT and let the hooks align all timeouts automatically.

  1. In Elastic Beanstalk (Worker env), set environment variables:
  1. Set Worker HTTP path to /worker/queue (Configuration → Worker → HTTP path).

Hooks automatically configured from WORKER_TIMEOUT:

Note that when using the automatic setup, some values that are set through the Elastic Benstalk dashboard will be overwritten on deployment.

*optional: If the SQS_QUEUE_URL is not provided the VisibilityTimeout will have to be set manually on the SQS queue.

Cron (optional)

Add a periodic task that runs php artisan schedule:run via the worker:

  1. Create cron.yaml in your app root:

  2. Ensure IS_WORKER=true. The package exposes /worker/cron and will run your Laravel scheduler.

Manual setup

Use only if you don’t publish the hooks. Configure to avoid premature redeliveries:

Configuration

config/worker.php (publish to customize):

Jobs can still set $timeout and $tries. Ensure $timeout <= WORKER_TIMEOUT.

How it works


All versions of laravel-beanstalk-worker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1||^8.2||^8.3
aws/aws-sdk-php Version ^3.235.5
illuminate/bus Version ^10.0||^11.0||^12.0
illuminate/contracts Version ^10.0||^11.0||^12.0
illuminate/http Version ^10.0||^11.0||^12.0
illuminate/queue Version ^10.0||^11.0||^12.0
illuminate/support Version ^10.0||^11.0||^12.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 timmylindh/laravel-beanstalk-worker contains the following files

Loading the files please wait ....