mmo / guzzle-xdebug-middleware
Guzzle Middleware that adds XDEBUG_SESSION query parameter to all requests for a client.
Installs: 2 931
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.6.0
- guzzlehttp/guzzle: ^6.0|^7.0
Requires (Dev)
- phpunit/phpunit: ~5.3.0
This package is auto-updated.
Last update: 2024-11-07 02:24:35 UTC
README
Guzzle Middleware that adds XDEBUG_SESSION
query parameters to all requests
for a client.
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
$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.