sentry-php-sdk

Integrate Sentry SDK into PHP applications for error monitoring and tracing.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/achmf/KostaHub --skill sentry-php-sdk-achmf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-php-sdk
Source: https://github.com/achmf/KostaHub/tree/main/.agents/skills/sentry-php-sdk
Command: npx skills add https://github.com/achmf/KostaHub --skill sentry-php-sdk-achmf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the complex process of integrating Sentry error monitoring, performance tracing, and profiling into PHP applications, ensuring developers don't miss critical production issues.

Core Features & Use Cases

  • Framework-Aware Setup: Automatically detects and configures Sentry for Laravel, Symfony, or plain PHP projects.
  • Comprehensive Monitoring: Enables error tracking, distributed tracing, profiling, and structured logging with a single workflow.
  • Use Case: Quickly add Sentry to a legacy Laravel application to capture unhandled exceptions, monitor slow database queries, and track cron job health without manual boilerplate.

Quick Start

Invoke the sentry-php-sdk skill to automatically detect your PHP framework and guide you through the installation and configuration of Sentry error monitoring and performance tracing.

Frequently Asked Questions about sentry-php-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Sentry error monitoring into a PHP application?

To integrate Sentry error monitoring into a PHP application, you need to configure the SDK to capture unhandled exceptions and track performance. This skill automates the setup process by detecting your framework and guiding you through installation.

Can I use Sentry for performance tracing and profiling in Laravel?

Yes, you can use Sentry for performance tracing and profiling in Laravel applications. The SDK supports automated framework detection, allowing you to monitor slow database queries, track distributed traces, and profile application performance seamlessly.

What is the best way to set up distributed tracing for Symfony projects?

The best way to set up distributed tracing for Symfony projects is by using an SDK that automatically detects the framework and configures distributed tracing across web contexts. This approach eliminates manual boilerplate and ensures comprehensive performance monitoring.

Does Sentry SDK support cron monitoring and structured logging in plain PHP?

Yes, the Sentry SDK supports cron monitoring and structured logging in plain PHP environments. It facilitates comprehensive error tracking and logging across both web and CLI contexts without requiring a specific web framework.

How does automated framework detection work when setting up PHP error tracking?

Automated framework detection works by identifying whether your project uses Laravel, Symfony, or plain PHP, then applying the appropriate configuration for error tracking. This ensures the Sentry SDK is initialized correctly without manual environment checks.

When should I add Sentry to a legacy PHP application?

You should add Sentry to a legacy PHP application when you need to capture unhandled exceptions, monitor slow database queries, and track cron job health in production. It provides immediate visibility into critical issues without requiring code rewrites.