PHPackages                             error-explorer/laravel - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. error-explorer/laravel

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

error-explorer/laravel
======================

Error Explorer SDK for Laravel - Automatic error tracking with breadcrumbs

10PHP

Since Jan 7Pushed 4mo agoCompare

[ Source](https://github.com/Error-Explorer/laravel-sdk)[ Packagist](https://packagist.org/packages/error-explorer/laravel)[ RSS](/packages/error-explorer-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Error Explorer Laravel SDK
==========================

[](#error-explorer-laravel-sdk)

Official Laravel SDK for [Error Explorer](https://error-explorer.com) - Automatic error tracking with breadcrumbs.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10.x or 11.x

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

[](#installation)

```
composer require error-explorer/laravel
```

The service provider is automatically discovered. No manual registration needed.

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

[](#configuration)

### 1. Set your token

[](#1-set-your-token)

Add to your `.env` file:

```
ERROR_EXPLORER_TOKEN=your_project_token
```

### 2. Publish config (optional)

[](#2-publish-config-optional)

```
php artisan vendor:publish --tag=error-explorer-config
```

Usage
-----

[](#usage)

### Automatic Capture

[](#automatic-capture)

The SDK automatically captures:

- **Exceptions** - All unhandled exceptions
- **HTTP Requests** - Request/response breadcrumbs
- **User Context** - Authenticated user info
- **Log Entries** - Via custom log channel (optional)

### Manual Enrichment

[](#manual-enrichment)

```
use ErrorExplorer\Laravel\Facades\ErrorExplorer;

// Add custom breadcrumb
ErrorExplorer::addBreadcrumb([
    'type' => 'user-action',
    'message' => 'User clicked checkout',
    'data' => ['cartTotal' => 149.99]
]);

// Set user context (overrides auto-detected)
ErrorExplorer::setUser([
    'id' => 'user_123',
    'email' => 'john@example.com',
    'plan' => 'pro'
]);

// Add tags for filtering
ErrorExplorer::setTags([
    'feature' => 'checkout',
    'version' => '2.0'
]);

// Add extra context
ErrorExplorer::setExtra([
    'orderId' => 'order_789'
]);

// Capture exception manually
try {
    // risky operation
} catch (Exception $e) {
    ErrorExplorer::captureException($e);
}

// Capture message
ErrorExplorer::captureMessage('Something noteworthy happened', 'info');
```

### Log Channel Integration

[](#log-channel-integration)

Add the Error Explorer channel to your `config/logging.php`:

```
'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['daily', 'error-explorer'],
    ],

    'error-explorer' => [
        'driver' => 'custom',
        'via' => \ErrorExplorer\Laravel\Logging\ErrorExplorerLogHandler::class,
        'level' => 'debug',
    ],
],
```

Configuration Options
---------------------

[](#configuration-options)

```
// config/error-explorer.php

return [
    // Enable/disable the SDK
    'enabled' => env('ERROR_EXPLORER_ENABLED', true),

    // Authentication
    'token' => env('ERROR_EXPLORER_TOKEN'),
    'dsn' => env('ERROR_EXPLORER_DSN'),

    // Environment & Release
    'environment' => env('APP_ENV', 'production'),
    'release' => env('APP_VERSION'),

    // What to capture
    'capture' => [
        'exceptions' => true,
        'errors' => true,
        'fatal_errors' => true,
    ],

    // Breadcrumbs
    'breadcrumbs' => [
        'max_breadcrumbs' => 50,
        'http_requests' => true,
        'logs' => true,
        'queries' => true,
    ],

    // Context
    'context' => [
        'user' => true,
        'request' => true,
        'server' => true,
    ],

    // Transport
    'transport' => [
        'async' => true,
        'timeout' => 3,
        'retry' => 2,
    ],

    // Data scrubbing
    'scrub_fields' => [
        'password',
        'password_confirmation',
        'token',
        'api_key',
    ],

    // Ignored exceptions
    'ignore' => [
        'exceptions' => [
            \Illuminate\Auth\AuthenticationException::class,
            \Illuminate\Validation\ValidationException::class,
            // ...
        ],
    ],
];
```

HMAC Authentication
-------------------

[](#hmac-authentication)

For enhanced security:

```
ERROR_EXPLORER_HMAC_ENABLED=true
ERROR_EXPLORER_HMAC_SECRET=your_hmac_secret
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

MIT License. See [LICENSE](../../LICENSE) for details.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance52

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/09a1b3bf709516aefba340935f9c1784d986688a173b09e96e55506e9197861a?d=identicon)[ErrorExplorer](/maintainers/ErrorExplorer)

---

Top Contributors

[![Manguet](https://avatars.githubusercontent.com/u/49959776?v=4)](https://github.com/Manguet "Manguet (6 commits)")

### Embed Badge

![Health badge](/badges/error-explorer-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/error-explorer-laravel/health.svg)](https://phpackages.com/packages/error-explorer-laravel)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
