Download the PHP package deuzu/request-collector-bundle without Composer
On this page you can find all versions of the php package deuzu/request-collector-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deuzu/request-collector-bundle
More information about deuzu/request-collector-bundle
Files in deuzu/request-collector-bundle
Informations about the package request-collector-bundle
Request Collector Bundle
The request collector Symfony bundle collects HTTP requests from various internet services (webhooks, api) or local calls. It exposes an URL that will persist, log and / or mail the incomming requests. The collected HTTP requests contain headers, query string parameters , post/form parameters and the body / content of the request.
It will help you to inspect, debug or process webhooks / api requests.
You can also add a your own custom service which will be executed just after the collect process by tagging a Symfony service from your application (CF Extension).
Installation
app/AppKernel.php
app/config/routing.yml
app/config/config.yml
You need to configure one collector and its route_path. By default the collector only persists the request.
Create Doctrine schema if needed
...or update it
You're done. To test it try to access a configured URL and then add /inspect at the end to see the persisted requests. Logs are located in the log folder and named by default request_collector.log
Configuration
app/config/config.yml
If you are using a different channel, add it to monolog configuration
app/config/config.yml
Extension
If you want to add your own custom service after the collect process all you have to do is to tag it like this :
Your custom service must implements Deuzu\RequestCollectorBundle\PostCollectHandler\PostCollectHandlerInterface
TODO
- contributing.md, pr_template.md
- Menu with differents collectors
- button to copy address which collects
- Inspect all collector action
- Improve templates
- filters
- Add translations (en only)