immobiliare/sentry-php
Composer 安装命令:
composer require immobiliare/sentry-php
包简介
Fork of a PHP client for Sentry (http://getsentry.com) that work also with php5.2
README 文档
README
This project is a fork of official PHP SDK v1.7 for Sentry to work even with php5.2.
Features
- Automatically report (un)handled exceptions and errors
- Send customized diagnostic data
- Process and sanitize data before sending it over the network
Installation
There are various ways to install the PHP integration for Sentry. The recommended way is to use Composer.
$ composer require immobiliare/sentry-php
Alternatively you can manually install it:
- Download and extract the latest sentry-php archive to your PHP project.
- Require the autoloader in your application:
require_once '/path/to/Raven/library/Raven/Autoloader.php'; Raven_Autoloader::register();
Usage
// Instantiate a new client with a compatible DSN and install built-in // handlers $sentryClient = new Raven_Client('https://e9ebbd88548a441288393c457ec90441:399aaee02d454e2ca91351f29bdc3a07@app.getsentry.com/3235'); $sentryClient->install(); // Capture an exception $event_id = $sentryClient->captureException($ex); // Give the user feedback echo "Sorry, there was an error!"; echo "Your reference ID is " . $event_id;
For more information, see the documentation.
Integration with frameworks
Other packages exists to integrate this SDK into the most common frameworks.
Community
Contributing
Dependencies are managed through composer:
$ composer install
Tests can then be run via phpunit:
$ vendor/bin/phpunit
immobiliare/sentry-php 适用场景与选型建议
immobiliare/sentry-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 56.12k 次下载、GitHub Stars 达 17, 最近一次更新时间为 2017 年 03 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「log」 「logging」 「sentry」 「php52」 「sentry-php」 「php 5.2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 immobiliare/sentry-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 immobiliare/sentry-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 immobiliare/sentry-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An implementation of the Sentry User Manager for Laravel.
Simple Yii2 Sentry target for logging (http://getsentry.com)
A Zend Framework module that sets up Monolog for logging in applications.
Monitoring for scheduled jobs
Asynchronous Sentry for Symfony - Fire and forget
Yii2 logger for Sentry
统计信息
- 总下载量: 56.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-03-28