Download the PHP package facile-it/sentry-module without Composer
On this page you can find all versions of the php package facile-it/sentry-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download facile-it/sentry-module
More information about facile-it/sentry-module
Files in facile-it/sentry-module
Package sentry-module
Short Description This module allows integration of Sentry Client into laminas and mezzio
License MIT
Homepage https://github.com/facile-it/sentry-module
Informations about the package sentry-module
ZF Sentry Module
This module allows integration with Sentry Client into laminas and mezzio.
Installation
The only supported way to install this module is trough composer. For composer documentation you can refer to getcomposer.org.
Install with implementations of php-http/async-client-implementation and psr/http-message-implementation:
Configuration
Client
To configure an instance of the client you can do as below:
Now you can use the client and the Hub by retrieving it from the Service Locator.
Error Handler Listener
This module provides a listener for MvcEvent::EVENT_DISPATCH_ERROR
and MvcEvent::EVENT_RENDER_ERROR
events
in order to log the exceptions caught in these events.
If you want to use it you should register it in your application module.
Example:
Log Writer
You can use our log writer to write logs.
Example:
Usage:
Javascript
This module can inject the javascript Raven client library and configure it for you.
In your layout:
Usage with Mezzio (ex zend-expressive)
If you want to use it with Mezzio you should initialize the Sentry client and Hub. You can simply retrieve the HubInterface service to initialize it.
All versions of sentry-module with dependencies
ext-json Version *
sentry/sentry Version ^4.0.0
laminas/laminas-servicemanager Version ^3.4.0 || ^4.0
nyholm/psr7 Version ^1.8