Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielkurecka/nette-guzzle-bluescreen
Tracy Bluescreen panel for Guzzle.
https://github.com/danielkurecka/nette-guzzle-bluescreen
guzzle nette tracy-panel
Last synced: about 4 hours ago
JSON representation
Tracy Bluescreen panel for Guzzle.
- Host: GitHub
- URL: https://github.com/danielkurecka/nette-guzzle-bluescreen
- Owner: danielkurecka
- License: mit
- Created: 2020-03-06T19:47:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T14:51:43.000Z (over 3 years ago)
- Last Synced: 2024-10-27T01:42:04.967Z (10 days ago)
- Topics: guzzle, nette, tracy-panel
- Language: PHP
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Nette Bluescreen for Guzzle
This extension adds a new panel to Tracy Bluescreen for Guzzle HTTP client.When Guzzle exception occures, it will log full request/response body and headers.
It will also pretty print the body when the content type is application/json.[![Nette Guzzle Bluescreen](https://danielkurecka.github.io/nette-guzzle-bluescreen/guzzle-bluescreen.png)](https://danielkurecka.github.io/nette-guzzle-bluescreen/guzzle-bluescreen.png)
# Installation
`composer require daku/nette-guzzle-bluescreen`## Usage
Register the extension in config.neon:
```neon
extensions:
guzzleBluescreen: Daku\Nette\Guzzle\GuzzleBlueScreenExtension
```## Configuration
```neon
guzzleBluescreen:
# Set maximum body length (in kB) that will be logged, if exceeded the body will be truncted. Default is 100 kB.
maxBodyLength: 200
# Enable/disable pretty print of json responses. Default is true.
prettyPrint: false
```## Requirements
PHP >= 7.1\
Nette >= 2.4