assouan/dumper

Dumping utilities for the A PHP libraries.

Maintainers

Package info

github.com/assouan/dumper

pkg:composer/assouan/dumper

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

dev-main 2026-06-17 13:49 UTC

This package is auto-updated.

Last update: 2026-06-17 13:49:50 UTC


README

Dumping utilities for the A PHP libraries.

composer require assouan/dumper

Requires PHP 8.5 or later.

Usage

dump($value);
dump($first, $second);

dd($value); // dumps and stops execution

dump() delegates to A\Dumper\Dumper::dump(). dd() calls Dumper::dump() and stops execution itself.

Architecture

Dumper owns the dump logic: type detection, recursion, depth limits, item limits, string truncation, and object property discovery.

Renderers own the output shape: lines, tree branches, labels, and styled fragments. AnsiRenderer colors CLI output; HtmlRenderer escapes and colors web output.

Styles

The default style is automatic: ANSI colors in CLI and HTML in web contexts.

use A\Dumper\Dumper;

Dumper::dump($value);