PHPackages                             programinglive/sentry-resolve - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. programinglive/sentry-resolve

ActiveLibrary[CLI &amp; Console](/categories/cli)

programinglive/sentry-resolve
=============================

Automate Sentry issue resolution with PHP commands and CLI tools

v1.1.8(5mo ago)1468MITPHPPHP ^8.1

Since Oct 29Pushed 5mo agoCompare

[ Source](https://github.com/programinglive/sentry-resolve)[ Packagist](https://packagist.org/packages/programinglive/sentry-resolve)[ RSS](/packages/programinglive-sentry-resolve/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (8)Versions (23)Used By (0)

Sentry Resolve
==============

[](#sentry-resolve)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8045a99bb32a31b064a298a0a57f16b463217d29a12bee15bfa1546b48a793f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f6772616d696e676c6976652f73656e7472792d7265736f6c76652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/programinglive/sentry-resolve)

[![Total Downloads](https://camo.githubusercontent.com/e09996670977ee24f94b590647b6bf0527f64d6290ef3b648a5805c22ca3b9f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70726f6772616d696e676c6976652f73656e7472792d7265736f6c76652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/programinglive/sentry-resolve)[![Website](https://camo.githubusercontent.com/426130af6cbad248bac61e68606879b89eb9fda6a6d4d54ba16c681cdae0265a/68747470733a2f2f696d672e736869656c64732e696f2f776562736974653f75726c3d687474707325334125324625324673656e7472792d7265736f6c76652e6e65746c6966792e617070266c6162656c3d77656273697465)](https://sentry-resolve.netlify.app)

Automate Sentry issue resolution with PHP commands and CLI tools. This package provides a simple way to fetch, manage, and resolve Sentry issues across any PHP project.

**[📚 Read the Full Documentation](https://sentry-resolve.netlify.app)**

Features
--------

[](#features)

- 🚀 **Framework Agnostic** - Works with Laravel, Symfony, or any PHP project
- 📋 **Issue Management** - Pull unresolved issues into a TODO file
- 🔧 **Bulk Resolution** - Resolve multiple issues at once
- 🖥️ **CLI Tool** - Standalone command-line interface
- 🧪 **Well Tested** - Comprehensive test coverage
- 🤖 **AI Workflow Integration** - Built-in detection for `@programinglive/dev-workflow-mcp-server`
- 📝 **Flexible Configuration** - Environment-based configuration

Installation
------------

[](#installation)

### Composer Install

[](#composer-install)

```
composer require --dev programinglive/sentry-resolve
```

### Laravel Installation

[](#laravel-installation)

1. Install the package:

```
composer require --dev programinglive/sentry-resolve
```

> **Why dev-only?** This package automates fixing Sentry issues during development workflows and is not intended for production environments.

2. Publish the configuration:

```
php artisan vendor:publish --tag=sentry-resolve-config
```

3. Add environment variables to your `.env`:

```
SENTRY_TOKEN=your_sentry_api_token
SENTRY_ORG=your_organization
SENTRY_PROJECT=your_project
```

Configuration
-------------

[](#configuration)

### Environment Variables

[](#environment-variables)

```
# Required
SENTRY_TOKEN=sntrys_eyJpYXQiOjE3...
SENTRY_ORG=your-organization-slug
SENTRY_PROJECT=your-project-slug
SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0

# Optional (for Laravel integration)
SENTRY_TRACES_SAMPLE_RATE=1.0
```

### Getting Sentry Credentials

[](#getting-sentry-credentials)

1. **API Token**: Go to Sentry → User Settings → API Tokens → Create New Token

    - Required scopes: `project:read`, `event:read`, `issue:read`, `issue:write`
2. **Organization &amp; Project**: Found in your Sentry project URL

    - URL: `https://your-org-slug.sentry.io/projects/your-project-slug/`
    - Organization: `your-org-slug`
    - Project: `your-project-slug`

Usage
-----

[](#usage)

### Standalone CLI

[](#standalone-cli)

After installation, you can use the CLI tool directly:

```
# Test your configuration
./vendor/bin/sentry-resolve sentry:debug

# Pull issues
./vendor/bin/sentry-resolve sentry:pull --limit=10 --sort=freq

# Resolve issues
./vendor/bin/sentry-resolve sentry:resolve ISSUE-1 ISSUE-2

# Test a token
./vendor/bin/sentry-resolve sentry:test-token your_token_here
```

### Laravel Artisan Commands

[](#laravel-artisan-commands)

```
# Test configuration
php artisan sentry:debug

# Pull latest issues
php artisan sentry:pull --limit=25 --sort=freq

# Resolve specific issues
php artisan sentry:resolve ISSUE-1 ISSUE-2

# Test a token
php artisan sentry:test-token your_token_here
```

### PHP Native Usage

[](#php-native-usage)

```
