PHPackages                             leanadmin/console-log - 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. leanadmin/console-log

ActiveLibrary

leanadmin/console-log
=====================

consoleLog() for Livewire components

v0.1.4(3y ago)2465.5k↓31.3%2[2 issues](https://github.com/archtechx/console-log/issues)MITPHP

Since Dec 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/archtechx/console-log)[ Packagist](https://packagist.org/packages/leanadmin/console-log)[ GitHub Sponsors](https://github.com/stancl)[ RSS](/packages/leanadmin-console-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

console-log
===========

[](#console-log)

A tiny package that adds a `consoleLog()` method to Livewire. This method sends any data to the browser developer console.

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

[](#installation)

Require the package via composer:

```
composer require leanadmin/console-log
```

Add this to your base layout:

```

```

By default, events will only show up if your application is in the `local` environment. If you wish to change that, pass an `environment` attribute to the component:

```

```

Usage
-----

[](#usage)

In any Livewire component, you can use the `consoleLog()` method to log a value (or values) to the browser console:

```
$this->consoleLog('foo');
$this->consoleLog($value);

$this->consoleLog('foo', 'bar');
$this->consoleLog($values);
```

IDE support
-----------

[](#ide-support)

Since the package adds a macro, you will not have IDE autosuggest for the `consoleLog()` method by default.

However, if you wish to add it, simply use the `ConsoleLog` trait:

```
use Lean\ConsoleLog\ConsoleLog;

class MyComponent extends Component
{
    use ConsoleLog;
}
```

This trait has a `@method` annotation which lets your IDE understand the method.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.4% 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 ~194 days

Total

5

Last Release

1187d ago

### Community

Maintainers

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

---

Top Contributors

[![stancl](https://avatars.githubusercontent.com/u/33033094?v=4)](https://github.com/stancl "stancl (11 commits)")[![abrardev99](https://avatars.githubusercontent.com/u/54532330?v=4)](https://github.com/abrardev99 "abrardev99 (5 commits)")[![lukinovec](https://avatars.githubusercontent.com/u/34375937?v=4)](https://github.com/lukinovec "lukinovec (5 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/leanadmin-console-log/health.svg)

```
[![Health](https://phpackages.com/badges/leanadmin-console-log/health.svg)](https://phpackages.com/packages/leanadmin-console-log)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[livewire/flux

The official UI component library for Livewire.

9475.0M86](/packages/livewire-flux)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[tomasvotruba/bladestan

PHPStan rule for static analysis of Blade templates

363584.5k4](/packages/tomasvotruba-bladestan)[tallstackui/tallstackui

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

703141.0k7](/packages/tallstackui-tallstackui)

PHPackages © 2026

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