PHPackages                             mmo/guzzle-xdebug-middleware - 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. mmo/guzzle-xdebug-middleware

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

mmo/guzzle-xdebug-middleware
============================

Guzzle Middleware that adds XDEBUG\_SESSION query parameter to all requests for a client.

v1.0.2(5y ago)43.1k↓50%MITPHPPHP &gt;=5.6.0CI failing

Since Oct 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/morawskim/guzzle-xdebug-middleware)[ Packagist](https://packagist.org/packages/mmo/guzzle-xdebug-middleware)[ RSS](/packages/mmo-guzzle-xdebug-middleware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/d090d90d3eeb7ced26472154c419810f7d2a957447b5e8c96818d4e5bdc6375c/68747470733a2f2f7472617669732d63692e636f6d2f6d6f726177736b696d2f67757a7a6c652d7864656275672d6d6964646c65776172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/morawskim/guzzle-xdebug-middleware)

Guzzle Middleware that adds `XDEBUG_SESSION` query parameters to all requests for a client.

Install (add to existing project)
---------------------------------

[](#install-add-to-existing-project)

```
composer require mmo/guzzle-xdebug-middleware
Using version ^1.0 for mmo/guzzle-xdebug-middleware
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing mmo/guzzle-xdebug-middleware (v1.0.0)
    Cloning 4078657e79d1cd2ab8728eacee5ad824c11cf79f from cache
....
```

Usage
-----

[](#usage)

```
$xdebugMiddleware = Mmo\Guzzle\Middleware\XdebugMiddleware::create('phpstorm');
$stack = GuzzleHttp\HandlerStack::create();
$stack->push($xdebugMiddleware);
$client = new GuzzleHttp\Client(['handler' => $stack]);
```

All requests made by the guzzle client above will include `XDEBUG_SESSION=phpstorm` in the GET query.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~498 days

Total

3

Last Release

2142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f48903acba8913dc7efd484ee70d647f77d41f24a261aab64cb27231ea0b7aa?d=identicon)[morawskim](/maintainers/morawskim)

---

Top Contributors

[![morawskim](https://avatars.githubusercontent.com/u/1105278?v=4)](https://github.com/morawskim "morawskim (9 commits)")

---

Tags

guzzle-middlewarexdebug

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mmo-guzzle-xdebug-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/mmo-guzzle-xdebug-middleware/health.svg)](https://phpackages.com/packages/mmo-guzzle-xdebug-middleware)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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