PHPackages                             asenar/chromephp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. asenar/chromephp

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

asenar/chromephp
================

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

5.0.0(9y ago)020.3k↓41.7%Apache-2.0PHPPHP &gt;=5.0.0

Since Apr 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Asenar/chromephp)[ Packagist](https://packagist.org/packages/asenar/chromephp)[ Docs](http://github.com/asenar/chromephp)[ RSS](/packages/asenar-chromephp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

Overview
--------

[](#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.

Requirements
------------

[](#requirements)

- PHP 5 or later

Installation Chrome
-------------------

[](#installation-chrome)

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::log($_SERVER);
    ChromePhp::warn('something went wrong!');
    ```

Installation Firefox
--------------------

[](#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

    ```
    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

    ```
    // disable FirePHP mode
    $firephp->addSetting('log_style', '');

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

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

More information can be found here:

[https://developer.mozilla.org/en-US/docs/Tools/Web\_Console/Console\_messages#Server](https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Console_messages#Server)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 76.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~705 days

Total

3

Last Release

3373d ago

Major Versions

4.1.0 → 5.0.02017-02-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/c905577164a6e91c670aabfa93a6654908ea42cebcac0388e7420fccad01bcf1?d=identicon)[Asenar](/maintainers/Asenar)

---

Top Contributors

[![ccampbell](https://avatars.githubusercontent.com/u/259316?v=4)](https://github.com/ccampbell "ccampbell (64 commits)")[![ErikKrause](https://avatars.githubusercontent.com/u/6303830?v=4)](https://github.com/ErikKrause "ErikKrause (9 commits)")[![okonomiyaki3000](https://avatars.githubusercontent.com/u/79470?v=4)](https://github.com/okonomiyaki3000 "okonomiyaki3000 (9 commits)")[![Asenar](https://avatars.githubusercontent.com/u/1180301?v=4)](https://github.com/Asenar "Asenar (2 commits)")

---

Tags

loglogging

### Embed Badge

![Health badge](/badges/asenar-chromephp/health.svg)

```
[![Health](https://phpackages.com/badges/asenar-chromephp/health.svg)](https://phpackages.com/packages/asenar-chromephp)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[rap2hpoutre/laravel-log-viewer

A Laravel log reader

3.2k14.7M71](/packages/rap2hpoutre-laravel-log-viewer)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

328134.8M151](/packages/sentry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
