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. [Utility &amp; Helpers](/categories/utility)
4. /
5. leanadmin/console-log

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

consoleLog() for Livewire components

v0.1.4(3y ago)2565.9k↓84.4%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 2d 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 69% 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

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

[livewire/flux

The official UI component library for Livewire.

9527.8M127](/packages/livewire-flux)[tallstackui/tallstackui

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

725173.0k14](/packages/tallstackui-tallstackui)[laravel/pulse

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

1.7k15.1M131](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[masmerise/livewire-toaster

Beautiful toast notifications for Laravel / Livewire.

510630.3k7](/packages/masmerise-livewire-toaster)[spatie/laravel-dashboard

A dashboard for Laravel

573170.7k96](/packages/spatie-laravel-dashboard)

PHPackages © 2026

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