class for logging PHP variables to Google Chrome console
Switch branches/tags
Clone or download
Failed to load latest commit information.
ChromePhp.php Add support for console.table Jun 26, 2013 Update Apr 8, 2013
composer.json Update composer.json Apr 8, 2013


ChromePhp is a PHP library for the Chrome Logger Google Chrome extension.

This library allows you to log variables to the Chrome console.


  • PHP 5 or later


  1. Install the Chrome extension from:

  2. Click the extension icon in the browser to enable it for the current tab's domain

  3. Put ChromePhp.php somewhere in your PHP include path

  4. Log some data

    include 'ChromePhp.php';
    ChromePhp::log('Hello console!');
    ChromePhp::warn('something went wrong!');

More information can be found here: