This integrates Sentry error reporting into an YAWIK instance
running YAWIK
Require a dependency via composer.
composer require yawik/sentryEnable the module for the Zend module manager via creating the sentry.module.php file in the /config/autoload directory with the following content.
<?php
return [
'YkSentry'
];Copy the file config/sentry.module-options.local.php.dist into the config/autoload directory and strip off the .dist extension.
Adjust the configuration.
$enable:
You may disable sending events to Sentry. (e.g. for testing or development environments.)$sentryConfig:
You can use any configuration keys that can be used in the function\Sentry\init()as described here.
However, thedsnkey is required, and sending events will be disabled, if it is not set or empty - regardless of the$enabledsetting above.
$enable = true;
$sentryConfig = [
// the DSN (public key) for the sentry server
'dsn' => '',
];- Clone project
$ git clone [email protected]:yawik/sentry.git /path/to/yawik-sentry- Install dependencies:
$ composer install- Run PHPUnit Tests
$ ./vendor/bin/phpunitMIT