Download the PHP package org_heigl/webhookhandler without Composer
On this page you can find all versions of the php package org_heigl/webhookhandler. 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 webhookhandler
WebHookHandler
Log-Hander that POSTs a log-request using HTTPlug
Installation
Usage
-
Create the handler
-
Add the handler to the logger as you would with any other handler:
- Log as you are used to:
The log-message will be send via a HTTP-POST to the provided URI (in this
example to `http://example.com/
).
The post-body will be the following json_encoded array:
[
[message] => The message of the log-entry
[from] => 'WhateverYouWant'
[context] => []
[level] => the set log-level
[level_name] => the name of the set log-level
[channel] => Whatever you set as channel name for the logger
[datetime] => DateTime-Object
[extra] => []
[formatted] => The formatted message
]
That mainly is the array that monolog passes to the handlers…
All versions of webhookhandler with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
monolog/monolog Version ^1.0
php-http/async-client-implementation Version ^1.0
php-http/httplug Version ^1.1
php-http/message Version ^1.5
monolog/monolog Version ^1.0
php-http/async-client-implementation Version ^1.0
php-http/httplug Version ^1.1
php-http/message Version ^1.5
The package org_heigl/webhookhandler contains the following files
Loading the files please wait ....