kuick/sentry

Kuick Sentry provides a bridge to Sentry for Kuick applications.

Maintainers

Package info

github.com/milejko/kuick-sentry

pkg:composer/kuick/sentry

Statistics

Installs: 203

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v2.2.1 2026-05-13 13:35 UTC

This package is auto-updated.

Last update: 2026-05-13 13:36:23 UTC


README

Latest Version PHP Total Downloads GitHub Actions CI codecov Software License

A Sentry bridge for applications based on Kuick Framework

Requirements

Installation

1. Install via Composer

composer require kuick/sentry

2. Register the DI definitions

The DI file wires SentryConfig, SentryInitializer, SentryListener, and SentryExceptionController and reads all settings from environment variables.

Test out the Sentry exception trigger it with:

curl -X PUT https://your-app.example.com/api/sentry/exception

Check your Sentry project — an event titled "Test exception for sentry integration" should appear.

3. Configure via environment variables

Variable Default Description
SENTRY_ENABLED 0 Set to 1 to enable Sentry reporting
SENTRY_DSN (empty) Your project DSN from the Sentry dashboard
SENTRY_ENVIRONMENT LOCAL Environment tag sent with every event (e.g. production, staging)
SENTRY_SAMPLE_RATE 1.0 Traces sample rate between 0.0 and 1.0
SENTRY_RELEASE (empty) Release identifier (e.g. v1.2.3 or a commit SHA)
SENTRY_IGNORE_EXCEPTIONS Kuick\Http\HttpException Comma-separated list of exception class names that should not be reported

Example .env file:

SENTRY_ENABLED=1
SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0
SENTRY_ENVIRONMENT=production
SENTRY_SAMPLE_RATE=1.0
SENTRY_RELEASE=v1.0.0
SENTRY_IGNORE_EXCEPTIONS=Kuick\Http\HttpException,App\Exception\ValidationException