Skip to content

assouan/dumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assouan Dumper

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);

About

PHP - Variable Dumper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages