PHPackages                             miquido/request-data-collector-guzzle - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. miquido/request-data-collector-guzzle

ActiveLibrary[HTTP &amp; Networking](/categories/http)

miquido/request-data-collector-guzzle
=====================================

Library used to extend the Request Data Collector by collecting Guzzle requests.

v2.3.0(5y ago)28.7kApache-2.0PHPPHP ^7.3|^8.0

Since Apr 1Pushed 4y ago2 watchersCompare

[ Source](https://github.com/miquido/request-data-collector-guzzle)[ Packagist](https://packagist.org/packages/miquido/request-data-collector-guzzle)[ Docs](https://github.com/miquido/request-data-collector-guzzle)[ RSS](/packages/miquido-request-data-collector-guzzle/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (9)Versions (9)Used By (0)

Request Data Collector - Guzzle collector
=========================================

[](#request-data-collector---guzzle-collector)

This package is an extension to the Request Data Collector. Allows collecting Guzzle requests.

[![GitHub license](https://camo.githubusercontent.com/4279c32da8d46c99eab26468d60706d159657a8c31c0ed99e20e9f3ad97b5bdd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865322e302d627269676874677265656e2e737667)](https://github.com/miquido/request-data-collector-guzzle/blob/master/LICENSE)[![Build](https://github.com/miquido/request-data-collector-guzzle/workflows/PHP/badge.svg?branch=master)](https://github.com/miquido/request-data-collector-guzzle/actions?query=branch%3Amaster)

Set up
------

[](#set-up)

### GuzzleCollector

[](#guzzlecollector)

This collector is being used to collect data about performed Guzzle requests.

```
'guzzle' => [
	'driver' => \Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::class,

	'decorate' => [
		'with' => \Miquido\RequestDataCollector\Collectors\GuzzleCollector\Guzzle6ClientDecorator::class,

		'abstracts' => [
			abstract => [
				'type'    => \Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::TYPE_*,
				'create'  => boolean,
				'collect' => [
					\Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::INFO_BY,
					\Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::INFO_VIA,
					\Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::INFO_METHOD,
					\Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::INFO_URI,
					\Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::INFO_HEADERS,
					\Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::INFO_OPTIONS,
				],
			],

			// ...
		],
	],
],
```

#### decorate.with

[](#decoratewith)

Defines Guzzle Client decorator class responsible for collecting requests.

#### decorate.abstracts

[](#decorateabstracts)

Defines a list of Guzzle Clients registered in the container. All abstracts will be decorated with class defined in `decorate.with`.

Every abstract is being defined in following way:

```
abstract => [
	'type'   => \Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::TYPE_*,
	'create' => boolean,
	'collect' => [
		// \Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::INFO_*
	],
],
```

**abstract** is the name under which instance has been registered in the container (e.g. `my-guzzle-client` or `\GuzzleHttp\ClientInterface::class`).

**type** defines the type of abstract (see `\Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::TYPE_*` constants).

**collect** defines list of request's information that should be logged (see `\Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::INFO_*` constants). If missing, all information will be used. The `times` information will always be available.

Additionally, You can include and exclude headers (case-insensitive). Remember, that **inclusions have priority over exclusions**.

```
abstract => [
	// ...

	'collect' => [
		\Miquido\RequestDataCollector\Collectors\GuzzleCollector\GuzzleCollector::INFO_HEADERS => [
			// We don't want Authorization header to be present in logs
			'excludes' => [
				'Authorization'
			],

			// From all headers that has been sent, only those are interesting for us
			'includes' => [
				'Accept',
				'content-type',
			],
		],
	],
],
```

When **create** equals `true`, defines to add an instance to the container even if it does not exist.

About
-----

[](#about)

The project was made by Miquido:

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~106 days

Recently: every ~87 days

Total

8

Last Release

1851d ago

Major Versions

v1.1.0 → v2.0.02020-04-28

PHP version history (3 changes)v1.0.0PHP &gt;=7.2

v2.2.0PHP &gt;=7.3

v2.3.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d2443c24cf5869099ca69ba917cca98e9c0884a8d5bc29d65fe872a9f54665a?d=identicon)[donatorsky](/maintainers/donatorsky)

---

Top Contributors

[![donatorsky](https://avatars.githubusercontent.com/u/5360041?v=4)](https://github.com/donatorsky "donatorsky (22 commits)")[![ljazgar](https://avatars.githubusercontent.com/u/2005098?v=4)](https://github.com/ljazgar "ljazgar (1 commits)")

---

Tags

guzzlelaravelmonitoringphprequestGuzzlecollectordata collectorrequest-data-collectorrequest-data-collector-guzzle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/miquido-request-data-collector-guzzle/health.svg)

```
[![Health](https://phpackages.com/badges/miquido-request-data-collector-guzzle/health.svg)](https://phpackages.com/packages/miquido-request-data-collector-guzzle)
```

###  Alternatives

[kevinrob/guzzle-cache-middleware

A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)

43117.4M104](/packages/kevinrob-guzzle-cache-middleware)[caseyamcl/guzzle_retry_middleware

Guzzle v6+ retry middleware that handles 429/503 status codes and connection timeouts

21610.7M64](/packages/caseyamcl-guzzle-retry-middleware)[php-http/guzzle7-adapter

Guzzle 7 HTTP Adapter

9057.1M554](/packages/php-http-guzzle7-adapter)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

916.4M49](/packages/graham-campbell-guzzle-factory)[hamburgscleanest/guzzle-advanced-throttle

A Guzzle middleware that can throttle requests according to (multiple) defined rules. It is also possible to define a caching strategy, e.g. get response from cache when rate limit is exceeded or always get cached value to spare your rate limits.

13033.4k1](/packages/hamburgscleanest-guzzle-advanced-throttle)[hamburgscleanest/laravel-guzzle-throttle

A Laravel wrapper for https://github.com/hamburgscleanest/guzzle-advanced-throttle.

7914.3k](/packages/hamburgscleanest-laravel-guzzle-throttle)

PHPackages © 2026

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