PHPackages                             rame0/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. rame0/chromephp

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

rame0/chromephp
===============

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

5.0.3-patch1(5y ago)0220↓50%Apache-2.0PHPPHP &gt;=7.4.0

Since Apr 13Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (12)Used By (0)

Overview
--------

[](#overview)

ChromePhp is a PHP library for the [Chrome Logger](https://chrome.google.com/extensions/detail/noaneddfkdjfnfdakjjmocngnfkfehhd) Google Chrome extension.

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

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

[](#requirements)

- PHP 7.4 or later

Installation
------------

[](#installation)

1. Install the browser extension from:
2. Click the extension icon in the browser to enable it for the current tab's domain
3. Install ChromePhp

**It's not recommended to use this library on production!**

Install as dev dependency:

```
    composer require --dev rame0/chromephp

```

Install as prod dependency:

```
    composer require rame0/chromephp

```

Log some data
-------------

[](#log-some-data)

```
// First require autoload
require __DIR__ . '/vendor/autoload.php';
$logger = new ChromePhp();
```

#### Log

[](#log)

```
$logger->log('Some log message');
$logger->log('Some other log message');
```

#### Result

[](#result)

[![1](https://user-images.githubusercontent.com/2233607/116883874-c051ee00-ac2e-11eb-99dc-5c3819cdaad5.png)](https://user-images.githubusercontent.com/2233607/116883874-c051ee00-ac2e-11eb-99dc-5c3819cdaad5.png)

#### Warning

[](#warning)

```
$logger->warn('Some warning');
$logger->warn('Some other warning');
```

#### Result

[](#result-1)

[![2](https://user-images.githubusercontent.com/2233607/116883897-c6e06580-ac2e-11eb-9587-3f65a0db2f3e.png)](https://user-images.githubusercontent.com/2233607/116883897-c6e06580-ac2e-11eb-9587-3f65a0db2f3e.png)

#### Error

[](#error)

```
$logger->error('Some error');
$logger->error('Some other error');
```

#### Result

[](#result-2)

[![3](https://user-images.githubusercontent.com/2233607/116883911-cba51980-ac2e-11eb-92a1-4d692d3a58a2.png)](https://user-images.githubusercontent.com/2233607/116883911-cba51980-ac2e-11eb-92a1-4d692d3a58a2.png)

#### Table

[](#table)

```
$table = [];
for ($i = 0; $i < 5; $i++) {
    $row = [];
    for ($c = 1; $c < 3; $c++) {
        $row['Col ' . $c] = $i;
    }
    $table[] = $row;
}
$logger->table($table);
```

#### Result

[](#result-3)

[![4](https://user-images.githubusercontent.com/2233607/116883927-d1026400-ac2e-11eb-8012-64a5896e71cc.png)](https://user-images.githubusercontent.com/2233607/116883927-d1026400-ac2e-11eb-8012-64a5896e71cc.png)

#### Exception

[](#exception)

```
$ex = new InvalidArgumentException('Some exception!');
$logger->exception($ex);

try{
    new PDO('asdf');
}catch (PDOException $ex){
    $logger->exception($ex);
}
```

#### Result

[](#result-4)

[![5](https://user-images.githubusercontent.com/2233607/116883949-d65fae80-ac2e-11eb-8598-362b575b3096.png)](https://user-images.githubusercontent.com/2233607/116883949-d65fae80-ac2e-11eb-8598-362b575b3096.png)

More information can be found here:

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

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 ~295 days

Recently: every ~3 days

Total

11

Last Release

1827d ago

Major Versions

4.1.4 → 5.0.22021-05-14

PHP version history (3 changes)4.0.0PHP &gt;=5.0.0

4.1.2PHP &gt;=7.0.0

4.1.4PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/019351b01e7657a0708bf9283911460d100821fea7ac678942223b5bd42e165a?d=identicon)[rame0](/maintainers/rame0)

---

Top Contributors

[![ccampbell](https://avatars.githubusercontent.com/u/259316?v=4)](https://github.com/ccampbell "ccampbell (64 commits)")[![rame0](https://avatars.githubusercontent.com/u/2233607?v=4)](https://github.com/rame0 "rame0 (20 commits)")

---

Tags

loglogging

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/rame0-chromephp/health.svg)](https://phpackages.com/packages/rame0-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)
