跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Sentry PHP SDK

技能 已验证 活跃
属于:Sentry

Full Sentry SDK setup for PHP. Use when asked to "add Sentry to PHP", "install sentry/sentry", "setup Sentry in PHP", or configure error monitoring, tracing, profiling, logging, metrics, or crons for PHP applications. Supports plain PHP, Laravel, and Symfony.

目的

To automate and simplify the complex process of integrating Sentry into PHP applications, ensuring robust error monitoring, performance tracing, and other Sentry features are correctly configured.

功能

  • Detects PHP project framework (Laravel, Symfony, plain PHP)
  • Recommends and configures Sentry features (error monitoring, tracing, profiling, logging, crons)
  • Provides framework-specific installation and initialization steps
  • Guides through manual span and transaction creation for tracing
  • Offers detailed troubleshooting and verification steps

使用场景

  • When asked to add Sentry to a PHP application.
  • When needing to configure error monitoring, tracing, profiling, or logging for PHP projects.
  • When setting up Sentry for Laravel, Symfony, or plain PHP applications.
  • When encountering issues with existing Sentry PHP SDK configurations.

非目标

  • Configuring Sentry for non-PHP platforms (e.g., JavaScript, Python).
  • Writing application logic or fixing bugs within the PHP application itself.
  • Providing generic PHP development advice outside of Sentry integration.

先决条件

  • PHP 7.2 or later
  • Extensions: ext-json, ext-mbstring, ext-curl
  • Composer installed
  • Excimer PECL extension (for profiling, Linux/macOS only)

安装

请先添加 Marketplace

/plugin marketplace add getsentry/sentry-for-ai
/plugin install sentry-for-ai@sentry-plugin-marketplace

质量评分

已验证
95 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标170
许可证Apache-2.0
状态
查看源代码

类似扩展

Sentry .NET SDK

99

Full Sentry SDK setup for .NET. Use when asked to "add Sentry to .NET", "install Sentry for C#", or configure error monitoring, tracing, profiling, logging, or crons for ASP.NET Core, MAUI, WPF, WinForms, Blazor, Azure Functions, or any other .NET application.

技能
getsentry

Sentry React SDK

100

Full Sentry SDK setup for React. Use when asked to "add Sentry to React", "install @sentry/react", or configure error monitoring, tracing, session replay, profiling, or logging for React applications. Supports React 16+, React Router v5-v7 non-framework mode, TanStack Router, Redux, Vite, and webpack.

技能
getsentry

Sentry React Router Framework Sdk

100

Full Sentry SDK setup for React Router Framework mode. Use when asked to "add Sentry to React Router Framework", "install @sentry/react-router", or configure error monitoring, tracing, profiling, session replay, logs, or user feedback for a React Router v7 framework app.

技能
getsentry

Sentry Python SDK

100

Full Sentry SDK setup for Python. Use when asked to "add Sentry to Python", "install sentry-sdk", "setup Sentry in Python", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for Python applications. Supports Django, Flask, FastAPI, Celery, Starlette, AIOHTTP, Tornado, and more.

技能
getsentry

Sentry Svelte Sdk

99

Full Sentry SDK setup for Svelte and SvelteKit. Use when asked to "add Sentry to Svelte", "add Sentry to SvelteKit", "install @sentry/sveltekit", or configure error monitoring, tracing, session replay, or logging for Svelte or SvelteKit applications.

技能
getsentry

Sentry Next.js SDK Setup

99

Full Sentry SDK setup for Next.js. Use when asked to "add Sentry to Next.js", "install @sentry/nextjs", or configure error monitoring, tracing, session replay, logging, profiling, AI monitoring, or crons for Next.js applications. Supports Next.js 13+ with App Router and Pages Router.

技能
getsentry