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(7mo ago)111MITPHPPHP ^8.2

Since Nov 21Pushed 7mo 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 today

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

34

—

LowBetter than 75% of packages

Maintenance63

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

224d 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

[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.0k14](/packages/tallstackui-tallstackui)[filament/support

Core helper methods and foundation code for all Filament packages.

2331.0M245](/packages/filament-support)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[yajra/laravel-datatables-export

Laravel DataTables Queued Export Plugin.

362.2M4](/packages/yajra-laravel-datatables-export)[noerd/noerd

101.4k6](/packages/noerd-noerd)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)

PHPackages © 2026

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