pd-it-de / var-tui-dumper
Browse Symfony VarDumper server dumps in an interactive terminal
Package info
github.com/pd-it-de/var-tui-dumper
Type:symfony-bundle
pkg:composer/pd-it-de/var-tui-dumper
Requires
- php: >=8.4.1
- revolt/event-loop: ^1.0
- symfony/console: ^8.1
- symfony/debug-bundle: ^8.1
- symfony/dependency-injection: ^8.1
- symfony/http-kernel: ^8.1
- symfony/tui: ~8.1.9 || ~8.2.0
- symfony/var-dumper: ^8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^12.5
- symfony/framework-bundle: ^8.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Inspect Symfony dump() output in an interactive terminal. Expand nested values, navigate between dumps, and copy scalar values.
Installation
Requires PHP 8.4.1 or later and Symfony 8.1 or later in the 8.x series. The bundle supports symfony/tui 8.1.9 through 8.1.x, and 8.2.x.
Applications that use Symfony Flex
Run this command from your application directory. Symfony Flex registers the bundle automatically.
composer require --dev pd-it-de/var-tui-dumper
Applications that don't use Symfony Flex
Run the same Composer command and add the bundle to config/bundles.php for the dev environment. DebugBundle must also be enabled in dev.
PdIt\VarTuiDumperBundle\VarTuiDumperBundle::class => ['dev' => true],
Configure the dump destination
If DebugBundle already sends dumps to a TCP server, use its existing configuration. Otherwise, add this setting for the dev environment.
# config/packages/dev/debug.yaml debug: dump_destination: 'tcp://%env(VAR_DUMPER_SERVER)%'
Usage
Start the viewer and trigger a request or console command that calls dump().
php bin/console server:tui-dump
Use the arrow keys to navigate, c to copy a scalar, ? for keyboard shortcuts, and q to quit.
The viewer keeps up to 25 dumps by default. Change the limit with --limit or l in the viewer. Use --fifo=on or press f to let new dumps replace the oldest entry when the buffer is full.
php bin/console server:tui-dump --limit=20 --fifo=on
