2017-25 © Pedro Peláez
 

library chromephp

image

asenar/chromephp

  • Sunday, July 29, 2018
  • by Asenar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,134 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 398 Forks
  • 0 Open issues
  • 10 Versions
  • 99 % Grown

The README.md

Overview

ChromePhp is a PHP library to log variables to the Chrome or Firefox devtools console. For Google Chrome the Chrome Logger extension is needed., (*1)

Requirements

  • PHP 5 or later

Installation Chrome

  1. Install the Chrome extension from: https://chrome.google.com/extensions/detail/noaneddfkdjfnfdakjjmocngnfkfehhd
  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, (*2)

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

Installation Firefox

  1. Put ChromePhp.php somewhere in your PHP include path
  2. Enable Server logging filter in the web console
  3. Initialize ChromePhp for FirePHP compatibility, (*3)

    include 'ChromePhp.php';
    $firephp = ChromePhp::getInstance();
    $firephp->setEnabled(true, 'FirePHP');
    

    The second parameter 'FirePHP' is optional and can be omitted in subsequent calls to setEnabled. FirePHP compatibility mode can be changed by calling, (*4)

    // disable FirePHP mode
    $firephp->addSetting('log_style', '');
    
    //enable FirePHP mode
    $firephp->addSetting('log_style', 'FirePHP');
    
  4. Log some data, (*5)

    $firephp->log($_GET, 'GET variables');
    $firephp->warn('Value out of range');
    

More information can be found here:, (*6)

http://www.chromelogger.com, (*7)

https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Console_messages#Server, (*8)

The Versions

29/07 2018

dev-webrequest-api

dev-webrequest-api

  Sources   Download

31/03 2018

2.2

2.2.0.0

  Sources   Download

31/03 2018

2.2.1

2.2.1.0

  Sources   Download

31/03 2018

3.0

3.0.0.0

  Sources   Download

22/02 2017

dev-master

9999999-dev http://github.com/asenar/chromephp

Log variables to the Chrome console (via Chrome Logger Google Chrome extension).

  Sources   Download

Apache-2.0

The Requires

  • php >=5.0.0

 

log logging

22/02 2017

5.0.0

5.0.0.0 http://github.com/asenar/chromephp

Log variables to the Chrome console (via Chrome Logger Google Chrome extension).

  Sources   Download

Apache-2.0

The Requires

  • php >=5.0.0

 

log logging

16/02 2017

dev-trace

dev-trace http://github.com/ccampbell/chromephp

Log variables to the Chrome console (via Chrome Logger Google Chrome extension).

  Sources   Download

Apache-2.0

The Requires

  • php >=5.0.0

 

log logging

14/02 2017

dev-readme-help-composer

dev-readme-help-composer http://github.com/ccampbell/chromephp

Log variables to the Chrome console (via Chrome Logger Google Chrome extension).

  Sources   Download

Apache-2.0

The Requires

  • php >=5.0.0

 

log logging

26/06 2013

4.1.0

4.1.0.0 http://github.com/ccampbell/chromephp

Log variables to the Chrome console (via Chrome Logger Google Chrome extension).

  Sources   Download

Apache-2.0

The Requires

  • php >=5.0.0

 

log logging

13/04 2013

4.0.0

4.0.0.0 http://github.com/ccampbell/chromephp

Log variables to the Chrome console (via Chrome Logger Google Chrome extension).

  Sources   Download

Apache-2.0

The Requires

  • php >=5.0.0

 

log logging