Download the PHP package assegaiphp/beanstalkd without Composer

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

Assegai Logo

Latest release Tests PHP 8.4+ License Status active

Beanstalkd queue driver for AssegaiPHP applications.

AssegaiPHP Beanstalkd Queue Integration

This package adds Beanstalkd queue support to the AssegaiPHP framework using the Pheanstalk PHP client.


Contribution workflow

For commit and pull request conventions in this repo, see:


๐Ÿ“ฆ Installation

Install via Composer:

`

Or use the Assegai CLI:

Compatibility

Beanstalkd package AssegaiPHP Common
1.1.x ^0.10.0
1.0.x ^0.9.0

Applications moving to the AssegaiPHP 0.10 release line should upgrade this package and the coordinated first-party dependencies together.


โš™๏ธ Configuration

Add a Beanstalk driver and connection to your config/queues.php file:

๐Ÿ’ก The format is: 'driverName.queueName', e.g., 'beanstalk.notifications'.


โœจ Usage

Producing Jobs

Inject a queue instance in your service using #[InjectQueue]:


Consuming Jobs

Create a queue consumer class with #[Processor] and extend WorkerHost:

โš ๏ธ Do not use #[Injectable] on consumers. The process() method must accept a callable and return a QueueProcessResultInterface.


Running the Worker

Start the queue worker using:

This will continuously listen for jobs from the configured Beanstalk tube.


๐Ÿงช Testing

You can simulate jobs by calling the service from a controller or CLI command and watch the consumer terminal for output.


๐Ÿ“š Resources


Support

Assegai is an MIT-licensed open source project. It can grow thanks to sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Assegai is MIT licensed.


All versions of beanstalkd with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
assegaiphp/common Version ^0.10.1
pda/pheanstalk Version ^7.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 assegaiphp/beanstalkd contains the following files

Loading the files please wait ...