PHPackages                             geekality/consolelog - 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. geekality/consolelog

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

geekality/consolelog
====================

Log variables to browser console via Chrome Logger protocol.

v1.3(8y ago)2541MITPHPPHP &gt;=7

Since Mar 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Svish/consolelog)[ Packagist](https://packagist.org/packages/geekality/consolelog)[ Docs](https://github.com/Svish/chromephp)[ RSS](/packages/geekality-consolelog/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (10)Used By (0)

Overview
========

[](#overview)

[![Latest version](https://camo.githubusercontent.com/9e43cafd91fb9404cc1c2be4db67af8846b246407f56a187bfa3509720dafcd6/68747470733a2f2f706f7365722e707567782e6f72672f6765656b616c6974792f636f6e736f6c656c6f672f76657273696f6e3f666f726d61743d666c61742d737175617265)](https://camo.githubusercontent.com/9e43cafd91fb9404cc1c2be4db67af8846b246407f56a187bfa3509720dafcd6/68747470733a2f2f706f7365722e707567782e6f72672f6765656b616c6974792f636f6e736f6c656c6f672f76657273696f6e3f666f726d61743d666c61742d737175617265)[![Downloads](https://camo.githubusercontent.com/971c841c3c0f0b890aea826204f1fc1980db3496df8cc84e638203286faa6115/68747470733a2f2f706f7365722e707567782e6f72672f6765656b616c6974792f636f6e736f6c656c6f672f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://camo.githubusercontent.com/971c841c3c0f0b890aea826204f1fc1980db3496df8cc84e638203286faa6115/68747470733a2f2f706f7365722e707567782e6f72672f6765656b616c6974792f636f6e736f6c656c6f672f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)[![License](https://camo.githubusercontent.com/e08c0b0674a5953f432766d987ccfdd4d24fe3f50362beecc352ebe3b685a7d4/68747470733a2f2f706f7365722e707567782e6f72672f6765656b616c6974792f636f6e736f6c656c6f672f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://camo.githubusercontent.com/e08c0b0674a5953f432766d987ccfdd4d24fe3f50362beecc352ebe3b685a7d4/68747470733a2f2f706f7365722e707567782e6f72672f6765656b616c6974792f636f6e736f6c656c6f672f6c6963656e73653f666f726d61743d666c61742d737175617265)

Allows easy server-side logging to browsers supporting the [Chrome Logger](http://www.chromelogger.com) protocol. Either native or via plugins.

Usage
=====

[](#usage)

```
use Geekality\ConsoleLog;

ConsoleLog::info('Hello console!');
ConsoleLog::log($_SERVER);
ConsoleLog::warn('something is off with', $object);
ConsoleLog::error('fail');

ConsoleLog::table([
	['R1 C1', 'R1 C2'],
	['R2 C1', 'R2 C2'],
	]);

ConsoleLog::group('Group header');
ConsoleLog::log('Bar');
ConsoleLog::groupEnd();
```

See more examples in [sample/index.php](sample/index.php).

---

Source
------

[](#source)

Based on [ccampbell/chromephp](http://github.com/ccampbell/chromephp), but more or less a complete rewrite because I found that one hard to extend and adjust in my own project. 😟

Ended up using newer PHP features and simplifying it a bit too, because that's how I roll.

Also called it `ConsoleLog` because I find it weird to use `Chrome` and `Php` in my code, when already writing PHP and I'm viewing the messages in the native Developer Console in FireFox... 🤔 🙂

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~37 days

Total

9

Last Release

3203d ago

### Community

Maintainers

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

---

Top Contributors

[![Svish](https://avatars.githubusercontent.com/u/142162?v=4)](https://github.com/Svish "Svish (13 commits)")

---

Tags

chrome-loggerconsoledebuggingloggingphpphp-librarylogconsolebrowserloggingdebuggingchrome-logger

### Embed Badge

![Health badge](/badges/geekality-consolelog/health.svg)

```
[![Health](https://phpackages.com/badges/geekality-consolelog/health.svg)](https://phpackages.com/packages/geekality-consolelog)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)

PHPackages © 2026

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