PHPackages                             sujan/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. sujan/console-log

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

sujan/console-log
=================

PHP library to log data on browser console

v1.0.0(6y ago)04MITPHP

Since Jan 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sujancse/console-log)[ Packagist](https://packagist.org/packages/sujan/console-log)[ RSS](/packages/sujan-console-log/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Packagist Version](https://camo.githubusercontent.com/8a9c33de2ad5113f8b47063b4d832b3b340a4f1d2883423f0eb67f0b770df966/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73756a616e2f636f6e736f6c652d6c6f67)](https://camo.githubusercontent.com/8a9c33de2ad5113f8b47063b4d832b3b340a4f1d2883423f0eb67f0b770df966/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73756a616e2f636f6e736f6c652d6c6f67)[![Packagist](https://camo.githubusercontent.com/23005ee09b0b8de77c67358fe0c684440cd0ae32c1d51be888ecd25e858620b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756a616e2f636f6e736f6c652d6c6f673f636f6c6f723d677265656e)](https://camo.githubusercontent.com/23005ee09b0b8de77c67358fe0c684440cd0ae32c1d51be888ecd25e858620b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756a616e2f636f6e736f6c652d6c6f673f636f6c6f723d677265656e)[![GitHub](https://camo.githubusercontent.com/fff31c605e962ece66dc99983723fb75f7febd940394c2527f73535af92b34a6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73756a616e6373652f636f6e736f6c652d6c6f673f636f6c6f723d79656c6c6f77)](https://camo.githubusercontent.com/fff31c605e962ece66dc99983723fb75f7febd940394c2527f73535af92b34a6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73756a616e6373652f636f6e736f6c652d6c6f673f636f6c6f723d79656c6c6f77)

A tiny PHP library to console log your PHP data to browser console.

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

[](#installation)

```
composer require sujan/console-log --dev

```

Usage
-----

[](#usage)

```
use Sujan\Logger\Console;

```

```
$users = User::all()->toArray();
Console::log($users);

$user = User::first();
Console::log($user);

```

[![Image](https://camo.githubusercontent.com/a54c9575862476ab372a9b1d11d76b3843b52b118e0dd3fbe8447c2ce2f83782/68747470733a2f2f692e6962622e636f2f7a3876436652702f53637265656e73686f742d323032302d30312d32302d61742d322d31302d33372d414d2e706e67)](https://camo.githubusercontent.com/a54c9575862476ab372a9b1d11d76b3843b52b118e0dd3fbe8447c2ce2f83782/68747470733a2f2f692e6962622e636f2f7a3876436652702f53637265656e73686f742d323032302d30312d32302d61742d322d31302d33372d414d2e706e67)

[![Image](https://camo.githubusercontent.com/e3dbbc8aea902dda455c3d992e9f2a0d30442776aa3a8ad4ff3b3504f0e3e683/68747470733a2f2f692e6962622e636f2f705033334368762f53637265656e73686f742d323032302d30312d32302d61742d322d31302d35322d414d2e706e67)](https://camo.githubusercontent.com/e3dbbc8aea902dda455c3d992e9f2a0d30442776aa3a8ad4ff3b3504f0e3e683/68747470733a2f2f692e6962622e636f2f705033334368762f53637265656e73686f742d323032302d30312d32302d61742d322d31302d35322d414d2e706e67)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

2309d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8064585474e68eebf68ebf93a396e0530bdc9f67799c07594b63f10fb340aeb6?d=identicon)[sujancse](/maintainers/sujancse)

---

Top Contributors

[![sujancse](https://avatars.githubusercontent.com/u/16623485?v=4)](https://github.com/sujancse "sujancse (5 commits)")

---

Tags

console-loglaravel-console-loglog-to-consoleloggerphp-console-log

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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