PHPackages                             shasoft/cdump - 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. [CLI &amp; Console](/categories/cli)
4. /
5. shasoft/cdump

ActiveLibrary[CLI &amp; Console](/categories/cli)

shasoft/cdump
=============

Package for outputting PHP variables to the browser console

v1.0(2y ago)0171MITPHP

Since Oct 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/shasoft/cdump)[ Packagist](https://packagist.org/packages/shasoft/cdump)[ RSS](/packages/shasoft-cdump/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Библиотека для вывода данных в console браузера.
================================================

[](#библиотека-для-вывода-данных-в-console-браузера)

Вывод в консоль контрольных значений
------------------------------------

[](#вывод-в-консоль-контрольных-значений)

**Код PHP**

```
enum CEnum1
{
    case Hearts;
    case Diamonds;
    case Clubs;
    case Spades;
}
enum CEnum2: string
{
    case Hearts = 'H';
    case Diamonds = 'D';
    case Clubs = 'C';
    case Spades = 'S';
}
class TestObject0
{
    private static int $numerator = 777;
    public int $iVal = 777;
    public CEnum1 $enum1;
}
class TestObject extends TestObject0
{
    protected static int $numerator2 = 7;
    public ?TestObject $objPub;
    private ?TestObject $objPvt;
    protected bool $logical;
    protected array $arr = [];
    protected array $arr2 = [];
    private $img;
    public CEnum2 $enum2;
    // Конструктор
    public function __construct(?TestObject $obj)
    {
        $this->objPub = $obj;
        $this->objPvt = $obj;
        $this->logical = true;
        $this->arr['aaa'] = 1;
        $this->arr['bbb'] = [2, false, $obj];
        $this->arr2[] = 10;
        $this->arr2[] = 20;
        $this->arr2[] = 30;
        $this->arr2[] = $this->arr;
        $this->img = imagecreate(32, 32);
        $this->enum1 = CEnum1::Hearts;
        $this->enum2 = CEnum2::Hearts;
    }
}
// Создать объект
$obj1 = new TestObject(null);
$obj2 = new TestObject($obj1);
$obj1->objPub = $obj2;
// Вывести в консоль браузера
cdump($obj1, 123, false, 1.2, "Test string");
```

**Вывод в консоли браузера**

[![](docs/browse-console.png)](docs/browse-console.png)

Позволяет раскрывать рекурсивные объекты до бесконечности.

Логирование
-----------

[](#логирование)

**Код PHP**

```
// Включить логирование
CDumpLog::enable(true);

class ClassTest
{
    static public function func0(int $x, int $delta): int
    {
        return CDumpLog::group(true, function () use ($x, $delta) {
            return $x + $delta;
        });
    }
}
// Логирование вызовов
function func1(int $a)
{
    return CDumpLog::group(true, function () use ($a) {
        return ClassTest::func0($a, 8) * 10;
    });
}
function func2(int $b): int
{
    return CDumpLog::group(true, function () use ($b) {
        return func1($b + 1) + 2;
    });
}

// Запустить функцию
func2(2);
```

**Вывод в консоли браузера**

[![](docs/browse-console-log.png)](docs/browse-console-log.png)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

931d ago

### Community

Maintainers

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

---

Tags

phpconsoledebugdumpbrowse

### Embed Badge

![Health badge](/badges/shasoft-cdump/health.svg)

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

###  Alternatives

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[buggregator/trap

A simple and powerful tool for debugging PHP applications.

2591.7M40](/packages/buggregator-trap)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9989.0k](/packages/mehrancodes-laravel-harbor)[php-school/learn-you-php

An introduction to PHP's core features: i/o, http, arrays, exceptions and so on.

3192.0k](/packages/php-school-learn-you-php)[alecrabbit/php-cli-snake

Lightweight cli spinner with zero dependencies

29211.3k5](/packages/alecrabbit-php-cli-snake)

PHPackages © 2026

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