getsentry avatar

Sentry Php Sdk

This is a comprehensive setup wizard that walks you through installing and configuring Sentry for PHP projects, whether you're running plain PHP, Laravel, or Symfony. It detects your framework, checks for existing Sentry installations, and recommends which features to enable (error monitoring, tracing, profiling, crons, metrics) based on what it finds in your codebase. The opinionated approach is helpful: instead of dumping configuration options on you, it scans composer.json and your file structure, then makes concrete recommendations. The references for each feature (error monitoring, tracing, profiling) are thorough, covering both auto-instrumentation for frameworks and manual instrumentation for custom code. Particularly useful if you're setting up Sentry for the first time and want guardrails instead of reading docs for an hour.

skills.sh installs
2.3K
GitHub stars
277
last updated
Aug 21, 2026

Install

$ npx -y skills add getsentry/sentry-for-ai --skill sentry-php-sdk --agent claude-code

Installs into .claude/skills of the current project.

Files

All Skills > SDK Setup > PHP SDK

Sentry PHP SDK

Opinionated wizard that scans your PHP project and guides you through complete Sentry setup.

Invoke This Skill When

  • User asks to "add Sentry to PHP" or "setup Sentry" in a PHP app
  • User wants error monitoring, tracing, profiling, logging, metrics, or crons in PHP
  • User mentions sentry/sentry, sentry/sentry-laravel, sentry/sentry-symfony, or Sentry + any PHP framework
  • User wants to monitor Laravel routes, Symfony controllers, queues, scheduled tasks, or plain PHP scripts

Note: SDK versions and APIs below reflect Sentry docs at time of writing (sentry/sentry 4.x, sentry/sentry-laravel 4.x, sentry/sentry-symfony 5.x). Always verify against docs.sentry.io/platforms/php/ before implementing.


Phase 1: Detect

Run these commands to understand the project before making recommendations:

# Check existing Sentry
grep -i sentry composer.json composer.lock 2>/dev/null

# Detect framework
cat composer.json | grep -E '"laravel/framework"|"symfony/framework-bundle"|"illuminate/'

Sponsors

Details

Repository
github.com/getsentry/sentry-for-ai
Categories
DevOps & CI/CD, Debugging, PHP & Laravel
First seen
May 16, 2026

More from getsentry/sentry-for-ai

All 31
1nvidia avatardeepstream-import-vision-modelnvidia/skillsUse this skill to bring any vision model from HuggingFace or NVIDIA NGC into an NVIDIA DeepStream pipeline with end-to-end automation: ONNX download, SafeTensor2.3Kskills.sh installs
2getsentry avatarsentry-flutter-sdkgetsentry/sentry-for-aiFull Sentry SDK setup for Flutter and Dart. Use when asked to "add Sentry to Flutter", "install sentry_flutter", "setup Sentry in Dart", or configure error moni2.3Kskills.sh installs
3getsentry avatarsentry-go-sdkgetsentry/sentry-for-aiFull Sentry SDK setup for Go. Use when asked to "add Sentry to Go", "install sentry-go", "setup Sentry in Go", or configure error monitoring, tracing, logging, 2.3Kskills.sh installs
4figma avatarfigma-generate-diagramfigma/mcp-server-guideMANDATORY prerequisite — load this skill BEFORE every `generate_diagram` tool call. NEVER call `generate_diagram` directly without loading this skill first. Tri2.2Kskills.sh installs
5getsentry avatarsentry-svelte-sdkgetsentry/sentry-for-aiFull Sentry SDK setup for Svelte and SvelteKit. Use when asked to "add Sentry to Svelte", "add Sentry to SvelteKit", "install @sentry/sveltekit", or configure e2.2Kskills.sh installs
6anthropics avatarscribeanthropics/knowledge-work-pluginsReference skill for Zoom AI Services Scribe. Use after routing to a transcription workflow when handling uploaded or stored media, Build-platform JWT auth, fast2.2Kskills.sh installs