PHPackages                             logtide/logtide-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. logtide/logtide-laravel

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

logtide/logtide-laravel
=======================

Laravel integration for the LogTide PHP SDK

v0.7.4(3mo ago)04MITPHPPHP ^8.1

Since Mar 6Pushed 2mo agoCompare

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

READMEChangelogDependencies (12)Versions (6)Used By (0)

 [![LogTide Logo](https://raw.githubusercontent.com/logtide-dev/logtide/main/docs/images/logo.png)](https://raw.githubusercontent.com/logtide-dev/logtide/main/docs/images/logo.png)

logtide/logtide-laravel
=======================

[](#logtidelogtide-laravel)

 [![Packagist](https://camo.githubusercontent.com/9024caf11bdb21ce34eb38cdd57e2508226d2bdc3c5eb0c40e6c87351a1f8314/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f67746964652f6c6f67746964652d6c61726176656c3f636f6c6f723d626c7565)](https://packagist.org/packages/logtide/logtide-laravel) [![License](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](../../LICENSE) [![Laravel](https://camo.githubusercontent.com/a8eb96774a7170ecc558f8563cdf3c4c44008e29b52f83f453843fffb17043a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3130253246313125324631322d4646324432302e737667)](https://laravel.com/)

 [LogTide](https://logtide.dev) integration for Laravel - automatic request tracing, error capture, and breadcrumbs.

---

Features
--------

[](#features)

- **Automatic request tracing** via HTTP middleware
- **Error capture** with full request context
- **W3C Trace Context** propagation (`traceparent` in/out)
- **Laravel Log Channel** - use LogTide as a logging driver
- **Facade** - `Logtide::info(...)` static access
- **Breadcrumb integrations** - DB queries, cache operations, queue jobs
- **Auto-discovery** - zero configuration needed
- **Laravel 10, 11, and 12** support

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

[](#installation)

```
composer require logtide/logtide-laravel
```

The service provider is auto-discovered. No manual registration needed.

---

Quick Start
-----------

[](#quick-start)

1. Add your DSN to `.env`:

```
LOGTIDE_DSN=https://lp_your_key@your-logtide-instance.com
```

2. Optionally publish the config:

```
php artisan vendor:publish --tag=logtide-config
```

That's it! HTTP requests are automatically traced, exceptions captured, and DB queries recorded as breadcrumbs.

---

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

[](#configuration)

```
// config/logtide.php

return [
    'dsn' => env('LOGTIDE_DSN'),
    'service' => env('LOGTIDE_SERVICE', env('APP_NAME', 'laravel')),
    'environment' => env('LOGTIDE_ENVIRONMENT', env('APP_ENV', 'production')),
    'release' => env('LOGTIDE_RELEASE'),
    'batch_size' => (int) env('LOGTIDE_BATCH_SIZE', 100),
    'flush_interval' => (int) env('LOGTIDE_FLUSH_INTERVAL', 5000),
    'max_buffer_size' => (int) env('LOGTIDE_MAX_BUFFER_SIZE', 10000),
    'max_retries' => (int) env('LOGTIDE_MAX_RETRIES', 3),
    'traces_sample_rate' => (float) env('LOGTIDE_TRACES_SAMPLE_RATE', 1.0),
    'debug' => (bool) env('LOGTIDE_DEBUG', false),
    'send_default_pii' => (bool) env('LOGTIDE_SEND_DEFAULT_PII', false),
    'breadcrumbs' => [
        'db_queries' => true,
        'cache' => true,
        'queue' => true,
        'http_client' => true,
    ],
    'skip_paths' => ['/health', '/healthz'],
];
```

---

Using the Log Channel
---------------------

[](#using-the-log-channel)

Add LogTide as a logging channel in `config/logging.php`:

```
'channels' => [
    'logtide' => [
        'driver' => 'custom',
        'via' => \LogTide\Laravel\LogChannel::class,
        'level' => 'debug',
    ],
],
```

Then use it:

```
Log::channel('logtide')->info('Hello from Laravel!');

// Or set as default in .env:
// LOG_CHANNEL=logtide
```

---

Using the Facade
----------------

[](#using-the-facade)

```
use LogTide\Laravel\LogtideFacade as Logtide;

Logtide::info('User logged in', ['user_id' => 123]);
Logtide::captureException($exception);
```

---

Breadcrumb Integrations
-----------------------

[](#breadcrumb-integrations)

All enabled by default in `config/logtide.php`:

- **DB Queries** - records SQL queries as breadcrumbs (via `QueryBreadcrumbIntegration`)
- **Cache** - records cache hits, misses, writes (via `CacheBreadcrumbIntegration`)
- **Queue** - records job processing events (via `QueueIntegration`)

---

License
-------

[](#license)

MIT License - see [LICENSE](../../LICENSE) for details.

Links
-----

[](#links)

- [LogTide Website](https://logtide.dev)
- [Documentation](https://logtide.dev/docs/sdks/laravel/)
- [GitHub](https://github.com/logtide-dev/logtide-php)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance84

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Every ~3 days

Total

5

Last Release

98d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40077351?v=4)[Polliog](/maintainers/Polliog)[@Polliog](https://github.com/Polliog)

---

Top Contributors

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

---

Tags

laravellogginglogtideobservabilitypackagistphptracinglaravelloggingtracingobservabilitylogtide

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76518.2M120](/packages/laravel-mcp)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)

PHPackages © 2026

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