tmzkj-yii2-shop/sentry
Composer 安装命令:
composer require tmzkj-yii2-shop/sentry
包简介
A PHP client for Sentry (http://getsentry.com)
README 文档
README
Sentry for PHP
The Sentry PHP error reporter tracks errors and exceptions that happen during the execution of your application and provides instant notification with detailed informations needed to prioritize, identify, reproduce and fix each issue. Learn more about automatic PHP error reporting with Sentry.
Features
- Automatically report (un)handled exceptions and errors
- Send customized diagnostic data
- Process and sanitize data before sending it over the network
Usage
// Instantiate a new client with a compatible DSN and install built-in // handlers $client = (new Raven_Client('http://public:secret@example.com/1'))->install(); // Capture an exception $event_id = $client->captureException($ex); // Give the user feedback echo "Sorry, there was an error!"; echo "Your reference ID is " . $event_id;
For more information, see our documentation.
Integration with frameworks
Other packages exists to integrate this SDK into the most common frameworks.
Official integrations
The following integrations are fully supported and maintained by the Sentry team.
3rd party integrations
The following integrations are available and maintained by members of the Sentry community.
- Nette
- ZendFramework
- WordPress
- Drupal
- OpenCart
- ... feel free to be famous, create a port to your favourite platform!
Community
- Documentation
- Bug Tracker
- Code
- Mailing List
- IRC (irc.freenode.net, #sentry)
Contributing
Dependencies are managed through composer:
$ composer install
Tests can then be run via phpunit:
$ vendor/bin/phpunit
Tagging a Release
-
Make sure
CHANGESis up to date (add the release date) andmasteris green. -
Create a new branch for the minor version (if not present):
$ git checkout -b releases/1.10.x
- Update the hardcoded version tag in
Client.php:
class Raven_Client { const VERSION = '1.10.0'; }
- Commit the change:
$ git commit -a -m "1.10.0"
- Tag the branch:
git tag 1.10.0
- Push the tag:
git push --tags
- Switch back to
master:
git checkout master
- Add the next minor release to the
CHANGESfile:
## 1.11.0 (unreleased)
- Update the version in
Client.php:
class Raven_Client { const VERSION = '1.11.x-dev'; }
- Lastly, update the composer version in
composer.json:
"extra": { "branch-alias": { "dev-master": "1.11.x-dev" } }
All done! Composer will pick up the tag and configuration automatically.
tmzkj-yii2-shop/sentry 适用场景与选型建议
tmzkj-yii2-shop/sentry 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「log」 「logging」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tmzkj-yii2-shop/sentry 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tmzkj-yii2-shop/sentry 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tmzkj-yii2-shop/sentry 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Zend Framework module that sets up Monolog for logging in applications.
Asynchronous Sentry for Symfony - Fire and forget
Stackdriver handler for Monolog (codeinternetapplications/monolog-stackdriver Fork).
Laravel 5.x.x library for integration Monolog Sentry
High-performance, zero-dependency PSR-3 logger for MonkeysLegion with structured logging, handlers, processors, and PHP 8.4 features.
Pacote simplificado para persistência de logs
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-12-01