Skip to content
getsentry avatar

Sentry Php Sdk

Full Sentry SDK setup for PHP that detects Laravel, Symfony, or plain PHP and guides feature configuration.

CCM score
68 of 100
skills.sh installs
2.4K
GitHub stars
283
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers error monitoring, tracing, profiling, logging, metrics, crons, and AI monitoring for PHP applications
  • Runs a detect-recommend-guide workflow using composer.json checks, framework markers like artisan and bin/console, and queue detection
  • Provides init snippets for plain PHP, Laravel (Integration::handles, sentry:publish), and Symfony (sentry.yaml), with per-feature reference files
  • Designed for teams adding Sentry to an existing PHP project; verifies SDK versions against current Sentry docs before implementing

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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/'

Details

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

More from getsentry/sentry-for-ai

All 27

Similar to Sentry Php Sdk

More PHP & Laravel