Download the PHP package tenantcloud/guzzle-helper without Composer
On this page you can find all versions of the php package tenantcloud/guzzle-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package guzzle-helper
Guzzle helpers
Guzzle helpers. Add Header and Json obfuscators for guzzle middleware. Used for remove autorization headers and sensitive date from response logs.
Requirements
- Guzzle >=7
- PHP version >=7.4.1
- Docker (optional)
Installation
In your composer.json
, add this repository:
Then do composer require tenantcloud/guzzle-helpers
to install the package.
Examples
$stack = \GuzzleHttp\HandlerStack::create();
// Return all response body.
$stack->unshift(\TenantCloud\GuzzleHelper\GuzzleMiddleware\GuzzleMiddleware::fullErrorResponseBody());
// Hide secret info from error responses (cut contactEmail, contactPhone keys).
// Hide Authorization header
$stack->unshift(\TenantCloud\GuzzleHelper\GuzzleMiddleware\GuzzleMiddleware::dumpRequestBody([
new \TenantCloud\GuzzleHelper\GuzzleMiddleware\JsonObfuscator([
'contactEmail',
'contactPhone',
]),
new \TenantCloud\GuzzleHelper\GuzzleMiddleware\HeaderObfuscator(['Authorization']),
]));
Commands
Install dependencies:
docker run -it --rm -v $PWD:/app -w /app composer install
Run tests:
docker run -it --rm -v $PWD:/app -w /app php:7.4-cli vendor/bin/phpunit
Run php-cs-fixer on self:
docker run -it --rm -v $PWD:/app -w /app composer cs-fix
All versions of guzzle-helper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
ext-json Version *
guzzlehttp/guzzle Version ~7.2
illuminate/support Version ^9.0 || ^10.0
spatie/macroable Version 1.0.1
ext-json Version *
guzzlehttp/guzzle Version ~7.2
illuminate/support Version ^9.0 || ^10.0
spatie/macroable Version 1.0.1
The package tenantcloud/guzzle-helper contains the following files
Loading the files please wait ....