phalcon5/sentry
Composer 安装命令:
composer require phalcon5/sentry
包简介
A PHP SDK for Sentry (http://sentry.io)
关键字:
README 文档
README
Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions
Official Sentry SDK 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 information needed to prioritize, identify, reproduce and fix each issue.
Getting started
Install
To install the SDK you will need to be using Composer in your project. To install it please see the docs.
This is our "core" SDK, meaning that all the important code regarding error handling lives here.
If you are happy with using the HTTP client we recommend install the SDK like: sentry/sdk
composer require sentry/sdk
This package (sentry/sentry) is not tied to any specific library that sends HTTP messages. Instead,
it uses Httplug to let users choose whichever
PSR-7 implementation and HTTP client they want to use.
If you just want to get started quickly you should run the following command:
composer require sentry/sentry php-http/curl-client
This is basically what our metapackage (sentry/sdk) provides.
This will install the library itself along with an HTTP client adapter that uses
cURL as transport method (provided by Httplug). You do not have to use those
packages if you do not want to. The SDK does not care about which transport method
you want to use because it's an implementation detail of your application. You may
use any package that provides php-http/async-client-implementation
and http-message-implementation.
Configuration
\Sentry\init(['dsn' => '___PUBLIC_DSN___' ]);
Usage
try { thisFunctionThrows(); // -> throw new \Exception('foo bar'); } catch (\Exception $exception) { \Sentry\captureException($exception); }
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.
- Drupal
- Neos Flow
- WordPress
- ZendFramework
- Yii2
- Silverstripe
- CakePHP 3.0 - 4.3
- CakePHP 4.4+
- October CMS
- ... feel free to be famous, create a port to your favourite platform!
3rd party integrations using old SDK 2.x
3rd party integrations using old SDK 1.x
Community
Contributing to the SDK
Please refer to CONTRIBUTING.md.
Getting help/support
If you need help setting up or configuring the PHP SDK (or anything else in the Sentry universe) please head over to the Sentry Community on Discord. There is a ton of great people in our Discord community ready to help you!
Resources
License
Licensed under the MIT license, see LICENSE
phalcon5/sentry 适用场景与选型建议
phalcon5/sentry 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 29 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 06 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「log」 「logging」 「profiling」 「sentry」 「error-handler」 「tracing」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 phalcon5/sentry 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 phalcon5/sentry 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 phalcon5/sentry 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Quick profiling of your code for Laravel
A Zend Framework module that sets up Monolog for logging in applications.
Excimetry PHP package. Bridge between ext-eximer and open telemetry
Asynchronous Sentry for Symfony - Fire and forget
Stackdriver handler for Monolog (codeinternetapplications/monolog-stackdriver Fork).
Laravel 5.x.x library for integration Monolog Sentry
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-09