PHPackages                             bentools/guzzle-queued - 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. bentools/guzzle-queued

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

bentools/guzzle-queued
======================

Queues asynchronous requests, handled by workers.

v2.7(9y ago)1104MITPHP

Since Jul 8Pushed 9y ago3 watchersCompare

[ Source](https://github.com/bpolaszek/guzzle-queued)[ Packagist](https://packagist.org/packages/bentools/guzzle-queued)[ RSS](/packages/bentools-guzzle-queued/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (15)Used By (0)

Guzzle Queued Client
====================

[](#guzzle-queued-client)

This library allows you to send asynchronous requests via Guzzle 6, using a queue system (only Beanstalk supported for the moment).

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

[](#installation)

`composer require bentools/guzzle-queued`

Usage
-----

[](#usage)

```
use BenTools\GuzzleQueued\Client as QueuedClient;
use GuzzleHttp\Psr7\Request as PSR7Request;
use Pheanstalk\Pheanstalk;

require_once __DIR__ . '/../vendor/autoload.php';

$pheanstalk = new Pheanstalk('127.0.0.1');
$guzzle     = new \GuzzleHttp\Client();
$client     = new QueuedClient($guzzle, $pheanstalk);
$request    = new PSR7Request('GET', 'http://httpbin.org/user-agent');
$promise    = $client->sendAsync($request)->then(function (\Psr\Http\Message\ResponseInterface $response) {
    echo (string) $response->getBody();
});

$promise->wait(); // Now the hard work has to be done by a separate PHP process
```

Launch as many workers as needed with the following command:

```
php vendor/bin/guzzle-request-worker.php &

```

Event Dispatcher
----------------

[](#event-dispatcher)

Create your own worker and hook to the following events:

- \\BenTools\\GuzzleQueued\\JobEvent::BEFORE\_PROCESS: before the request is processed
- \\BenTools\\GuzzleQueued\\JobEvent::AFTER\_PROCESS: after the request is processed
- \\BenTools\\GuzzleQueued\\JobEvent::ERROR: if an error occured

Change response, prevent the request from being effectively sent, delay the request, ...

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Total

14

Last Release

3556d ago

Major Versions

v1.1 → v2.02016-08-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/acdd1a8ee0e657ddd06cf11f98a32100ef7121afb8aa270a5b295f5c29c038b3?d=identicon)[bpolaszek](/maintainers/bpolaszek)

---

Top Contributors

[![bpolaszek](https://avatars.githubusercontent.com/u/5569077?v=4)](https://github.com/bpolaszek "bpolaszek (17 commits)")

### Embed Badge

![Health badge](/badges/bentools-guzzle-queued/health.svg)

```
[![Health](https://phpackages.com/badges/bentools-guzzle-queued/health.svg)](https://phpackages.com/packages/bentools-guzzle-queued)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.6k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M396](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[eliashaeussler/cache-warmup

Composer package to warm up website caches, based on a given XML sitemap

75419.2k9](/packages/eliashaeussler-cache-warmup)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
