PHPackages                             smileitworks/livewire-event-debugger - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. smileitworks/livewire-event-debugger

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

smileitworks/livewire-event-debugger
====================================

Debug and log all Livewire events in development

v1.0.2(5mo ago)011MITPHPPHP ^8.2

Since Nov 21Pushed 5mo agoCompare

[ Source](https://github.com/Smile-IT-Works/livewire-event-debugger)[ Packagist](https://packagist.org/packages/smileitworks/livewire-event-debugger)[ RSS](/packages/smileitworks-livewire-event-debugger/feed)WikiDiscussions main Synced 1mo ago

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

Livewire Event Debugger
=======================

[](#livewire-event-debugger)

A powerful debugging tool for Livewire that automatically logs all events (both client-side and server-side) to help you debug your Livewire applications.

Features
--------

[](#features)

- 🔵 Logs all client-side events (`Livewire.dispatch()`, `Livewire.dispatchTo()`)
- 🟢 Logs all server-side events (`$this->dispatch()` in PHP)
- 🎯 Environment-aware (only enabled in development)
- 📊 Detailed or simple logging formats
- ⚡ Zero performance impact in production

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

[](#installation)

```
composer require smileitworks/livewire-event-debugger --dev
```

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

[](#configuration)

Publish the config file (optional, but recommended):

```
php artisan vendor:publish --tag=livewire-event-debugger-config
```

**Note:** The JavaScript assets are automatically served from the vendor directory. If you prefer to serve them from your `public` directory (e.g., for CDN distribution), you can publish them:

```
php artisan vendor:publish --tag=livewire-event-debugger-assets
```

Edit `config/livewire-event-debugger.php`:

```
return [
    'enabled_environments' => ['local', 'testing'],
    'console_logging' => true,
    'log_format' => 'detailed', // or 'simple'
];
```

Usage
-----

[](#usage)

### Option 1: Using Blade Component (Recommended)

[](#option-1-using-blade-component-recommended)

Add to your layout file (e.g., `resources/views/partials/head.blade.php`):

```

```

### Option 2: Manual Integration

[](#option-2-manual-integration)

Add to your layout file:

```
@php
    $config = config('livewire-event-debugger', []);
    $enabledEnvironments = $config['enabled_environments'] ?? ['local', 'testing'];
    $isEnabled = in_array(app()->environment(), $enabledEnvironments);
@endphp

@if($isEnabled)

@endif
```

### Option 3: Using Vite

[](#option-3-using-vite)

If you prefer to bundle it with Vite, copy the JS file to your resources and import it:

```
// In resources/js/app.js
import "./livewire-event-debugger";
```

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

[](#how-it-works)

The package hooks into Livewire's JavaScript API to intercept:

1. **Client-side dispatches**: Overrides `Livewire.dispatch()` and `Livewire.dispatchTo()`
2. **Server-side dispatches**: Uses Livewire's `commit` hook to catch events from PHP `$this->dispatch()` calls

All events are logged to the browser console with:

- Event name
- Parameters
- Component name (for server-side events)
- Timestamp (in detailed mode)

Testing
-------

[](#testing)

Run the test suite:

```
composer test
```

Or with Pest directly:

```
vendor/bin/pest
```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance75

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~0 days

Total

4

Last Release

168d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aad0a15f5d6e323aa1f3db97b460d36c226ad977a64e7f99847c7249e710458e?d=identicon)[pbucko1](/maintainers/pbucko1)

---

Top Contributors

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

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/smileitworks-livewire-event-debugger/health.svg)

```
[![Health](https://phpackages.com/badges/smileitworks-livewire-event-debugger/health.svg)](https://phpackages.com/packages/smileitworks-livewire-event-debugger)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M914](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k28](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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