yawik / sentry
This module integrates Sentry error reporting in an YAWIK instance.
Installs: 110
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:yawik-module
Requires
- sentry/sdk: ^2.1
- yawik/core: ^0.35
Requires (Dev)
- cross-solution/phpunit-utils: ^2.0
- phpunit/phpunit: ^8.0
- slevomat/coding-standard: ^5.0
- squizlabs/php_codesniffer: ^3.5
- yawik/applications: ^0.35
- yawik/auth: ^0.35
- yawik/behat: ^0.35
- yawik/cv: ^0.35
- yawik/geo: ^1.1
- yawik/install: ^0.35
- yawik/jobs: ^0.35
- yawik/organizations: ^0.35
- yawik/settings: ^0.35
This package is auto-updated.
Last update: 2024-11-13 21:27:39 UTC
README
This integrates Sentry error reporting into an YAWIK instance
Requirements
running YAWIK
Installation
Require a dependency via composer.
composer require yawik/sentry
Enable 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' ];
Configuration
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, thedsn
key is required, and sending events will be disabled, if it is not set or empty - regardless of the$enabled
setting above.
$enable = true; $sentryConfig = [ // the DSN (public key) for the sentry server 'dsn' => '', ];
Development
- Clone project
$ git clone git@github.com:yawik/sentry.git /path/to/yawik-sentry
- Install dependencies:
$ composer install
- Run PHPUnit Tests
$ ./vendor/bin/phpunit
Licence
MIT