Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Svish/consolelog

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Latest version Downloads License

Allows easy server-side logging to browsers supporting the Chrome Logger protocol. Either native or via plugins.

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.


Source

Based on 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... 🤔 🙂

About

PHP class for logging variables to browser console via Chrome Logger protocol.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.