yawik/sentry
Composer 安装命令:
composer require yawik/sentry
包简介
This module integrates Sentry error reporting in an YAWIK instance.
README 文档
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, 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' => '', ];
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
统计信息
- 总下载量: 111
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-27