ccampbell / chromephp
Log variables to the Chrome console (via Chrome Logger Google Chrome extension).
Installs: 1 744 348
Dependents: 36
Suggesters: 5
Security: 0
Stars: 1 333
Watchers: 77
Forks: 457
Open Issues: 39
Requires
- php: >=5.0.0
This package is not auto-updated.
Last update: 2021-01-16 10:03:36 UTC
README
ChromePhp is a PHP library for the Chrome Logger Google Chrome extension.
This library allows you to log variables to the Chrome console.
Requirements
- PHP 5 or later
Installation
-
Install the Chrome extension from: https://chrome.google.com/extensions/detail/noaneddfkdjfnfdakjjmocngnfkfehhd
-
Click the extension icon in the browser to enable it for the current tab's domain
-
Put ChromePhp.php somewhere in your PHP include path
-
Log some data
include 'ChromePhp.php'; ChromePhp::log('Hello console!'); ChromePhp::log($_SERVER); ChromePhp::warn('something went wrong!');
More information can be found here: http://www.chromelogger.com