PHPackages                             logtide/logtide-wordpress - 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-wordpress

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

logtide/logtide-wordpress
=========================

LogTide integration for WordPress

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

Since Mar 6Pushed 2mo agoCompare

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

READMEChangelogDependencies (2)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-wordpress
=========================

[](#logtidelogtide-wordpress)

 [![Packagist](https://camo.githubusercontent.com/9a83406746a58ee1f05ce26587d780509315572449c882a6a5cc720a312a8a3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f67746964652f6c6f67746964652d776f726470726573733f636f6c6f723d626c7565)](https://packagist.org/packages/logtide/logtide-wordpress) [![License](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](../../LICENSE) [![WordPress](https://camo.githubusercontent.com/d9183168e9ea9d5625a4802e666e8234b04546243644206c1197fc78a04e7f41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e782d3231373539622e737667)](https://wordpress.org/)

 [LogTide](https://logtide.dev) integration for WordPress - automatic error capture, database monitoring, and breadcrumbs.

---

Features
--------

[](#features)

- **Automatic error capture** via `wp_die_handler` filter
- **Database query breadcrumbs** with slow query detection
- **HTTP API breadcrumbs** for outgoing WordPress HTTP requests
- **Lifecycle breadcrumbs** - `wp_loaded`, redirects, email sending
- **Plugin events** - activation/deactivation tracking
- **Multisite support** - blog switch tracking
- **WordPress error handler integration** via `set_error_handler`

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

[](#installation)

```
composer require logtide/logtide-wordpress
```

---

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

[](#quick-start)

Add to your plugin's main file or `functions.php`:

```
use LogTide\WordPress\LogtideWordPress;

LogtideWordPress::init([
    'dsn' => 'https://lp_your_key@your-logtide-instance.com',
    'service' => 'my-wordpress-site',
    'environment' => 'production',
]);
```

Or with separate API URL and key:

```
LogtideWordPress::init([
    'api_url' => 'https://your-logtide-instance.com',
    'api_key' => 'lp_your_key',
    'service' => 'my-wordpress-site',
]);
```

---

How It Works
------------

[](#how-it-works)

`LogtideWordPress::init()` registers WordPress hooks automatically:

HookWhat it does`wp_loaded`Records a lifecycle breadcrumb`shutdown`Flushes all pending logs and spans`wp_die_handler`Captures `WP_Error` and string messages`wp_redirect`Records redirect breadcrumbs`wp_mail`Records outgoing email breadcrumbs`switch_blog`Records multisite blog switch`activated_plugin`Records plugin activation`deactivated_plugin`Records plugin deactivation---

Integrations
------------

[](#integrations)

### WordPressIntegration

[](#wordpressintegration)

Hooks into PHP's `set_error_handler` to capture warnings, notices, and fatal errors.

### DatabaseIntegration

[](#databaseintegration)

Monitors `$wpdb` queries and records them as breadcrumbs. Highlights slow queries (configurable threshold, default 100ms).

```
LogtideWordPress::init([
    'dsn' => '...',
    'service' => 'my-site',
    'slow_query_threshold_ms' => 200.0, // flag queries slower than 200ms
]);
```

### HttpApiIntegration

[](#httpapiintegration)

Records WordPress HTTP API calls (`wp_remote_get`, `wp_remote_post`, etc.) as breadcrumbs with URL, method, and response status.

---

License
-------

[](#license)

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

Links
-----

[](#links)

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

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance84

Actively maintained with recent releases

Popularity0

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

95d 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 (5 commits)")

---

Tags

logginglogtideobservabilitypackagistphpwordpressloggingmonitoringwordpressobservabilitylogtide

### Embed Badge

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

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

PHPackages © 2026

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