library guzzle-xdebug-middleware
Guzzle Middleware that adds XDEBUG_SESSION_START query parameter to all requests for a client.
mmo/guzzle-xdebug-middleware
Guzzle Middleware that adds XDEBUG_SESSION_START query parameter to all requests for a client.
- Saturday, October 14, 2017
- by morawskim
- Repository
- 1 Watchers
- 2 Stars
- 56 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 14 % Grown
, (*1)
Guzzle Middleware that adds XDEBUG_SESSION
query parameters to all requests
for a client., (*2)
Install (add to existing project)
``` bash
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
...., (*3)
## Usage
```php
$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., (*4)
dev-master
9999999-dev
Guzzle Middleware that adds XDEBUG_SESSION_START query parameter to all requests for a client.
Sources
Download
MIT
The Requires
The Development Requires
by
Marcin Morawski
v1.0.0
1.0.0.0
Guzzle Middleware that adds XDEBUG_SESSION_START query parameter to all requests for a client.
Sources
Download
MIT
The Requires
The Development Requires
by
Marcin Morawski