PHPackages                             digital-drifter/laravel-chrome-logger - 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. digital-drifter/laravel-chrome-logger

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

digital-drifter/laravel-chrome-logger
=====================================

Laravel bridge for ChromePhp. Log PHP output to the Chrome console.

1.0.2(8y ago)27221MITPHPPHP &gt;=7.1.0

Since Apr 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/digital-drifter/laravel-chrome-logger)[ Packagist](https://packagist.org/packages/digital-drifter/laravel-chrome-logger)[ RSS](/packages/digital-drifter-laravel-chrome-logger/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Log PHP output to the Chrome console
====================================

[](#log-php-output-to-the-chrome-console)

Laravel bridge for [ChromePhp](https://craig.is/writing/chrome-logger).

Installation
============

[](#installation)

This package requires the [Chrome Logger](https://chrome.google.com/webstore/detail/chrome-logger/noaneddfkdjfnfdakjjmocngnfkfehhd) extension.

Once you've installed the extension, add this package to your project via composer:

```
$ composer require --dev digital-drifter/laravel-chrome-logger
```

Laravel 5.5 will automatically register the service provider through auto-discovery.

Previous versions of the framework just add the service provider in `config/app.php` file:

```
'providers' => [
    // ...
    DigitalDrifter\LaravelChromeLogger\LaravelChromeLoggerServiceProvider::class,
];
```

Available Methods
=================

[](#available-methods)

All methods exposed on the `ChromePhp` class are available. The following comes directly from the class:

```
/**
 * gets instance of this class
 *
 * @return ChromePhp
 */
public static function getInstance();

/**
 * logs a variable to the console
 *
 * @param mixed $data,... unlimited OPTIONAL number of additional logs [...]
 * @return void
 */
public static function log();

/**
 * logs a warning to the console
 *
 * @param mixed $data,... unlimited OPTIONAL number of additional logs [...]
 * @return void
 */
public static function warn();

/**
 * logs an error to the console
 *
 * @param mixed $data,... unlimited OPTIONAL number of additional logs [...]
 * @return void
 */
public static function error();

/**
 * sends a group log
 *
 * @param string value
 */
public static function group();

/**
 * sends an info log
 *
 * @param mixed $data,... unlimited OPTIONAL number of additional logs [...]
 * @return void
 */
public static function info();

/**
 * sends a collapsed group log
 *
 * @param string value
 */
public static function groupCollapsed();

/**
 * ends a group log
 *
 * @param string value
 */
public static function groupEnd();

/**
 * sends a table log
 *
 * @param string value
 */
public static function table();

/**
 * adds a setting
 *
 * @param string key
 * @param mixed value
 * @return void
 */
public function addSetting($key, $value);

/**
 * add ability to set multiple settings in one call
 *
 * @param array $settings
 * @return void
 */
public function addSettings(array $settings);

/**
 * gets a setting
 *
 * @param string key
 * @return mixed
 */
public function getSetting($key);
```

Usage
=====

[](#usage)

### Dependency Injection

[](#dependency-injection)

As with any other class registered in Laravel's service container, you may inject an instance into your code like:

```
use DigitalDrifter\LaravelChromeLogger\LaravelChromeLogger;

...

/**
 * LaravelChromeLogger $logger
 */
protected $logger;

public function __construct(LaravelChromeLogger $logger)
{
	$this->logger = $logger;
}
```

### Facade

[](#facade)

Using the provided facade:

```
public function log(string $message)
{
	LaravelChromeLogger::log($message);
}
```

### Helper Method

[](#helper-method)

The `console()` helper method is available.

```
public function log(string $level = "log", string $message)
{
	console($level, $message);
}
```

Credits
=======

[](#credits)

All credit to [Craig Cambell](https://github.com/ccampbell) for providing the basis to this package.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3008d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/236768?v=4)[Brian Lee](/maintainers/digital-drifter)[@digital-drifter](https://github.com/digital-drifter)

---

Top Contributors

[![digital-drifter](https://avatars.githubusercontent.com/u/236768?v=4)](https://github.com/digital-drifter "digital-drifter (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/digital-drifter-laravel-chrome-logger/health.svg)

```
[![Health](https://phpackages.com/badges/digital-drifter-laravel-chrome-logger/health.svg)](https://phpackages.com/packages/digital-drifter-laravel-chrome-logger)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87511.3M154](/packages/spatie-laravel-health)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[spatie/laravel-flare

Send Laravel errors to Flare

111.2M6](/packages/spatie-laravel-flare)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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