Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ccampbell/chromephp
class for logging PHP variables to Google Chrome console
https://github.com/ccampbell/chromephp
console logging php
Last synced: 3 days ago
JSON representation
class for logging PHP variables to Google Chrome console
- Host: GitHub
- URL: https://github.com/ccampbell/chromephp
- Owner: ccampbell
- Created: 2010-08-22T23:04:50.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T09:43:33.000Z (about 2 years ago)
- Last Synced: 2024-10-29T15:49:04.443Z (2 months ago)
- Topics: console, logging, php
- Language: PHP
- Homepage: http://www.chromelogger.com
- Size: 319 KB
- Stars: 1,376
- Watchers: 76
- Forks: 450
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- favorite-link - 用于将 PHP 变量记录到 Google Chrome 控制台。
README
## Overview
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
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```php
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