konradmichalik / typo3-dump-server
This extension brings the Symfony Var Dump Server to TYPO3.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ^8.1
- symfony/var-dumper: ^5.0 || ^6.0 || ^7.0
- typo3/cms-core: ^11.5 || ^12.4 || ^13.4
Requires (Dev)
- armin/editorconfig-cli: ^1.0 || ^2.0
- ergebnis/composer-normalize: ^2.44
- friendsofphp/php-cs-fixer: ^3.52
- helhum/typo3-console: ^8.1
- helmich/typo3-typoscript-lint: ^3.2
- roave/security-advisories: dev-latest
- saschaegerer/phpstan-typo3: ^1.0 || ^2.0
- ssch/typo3-rector: ^2.0 || ^3.0
- symfony/translation: ^6.3 || ^7.0
- typo3/cms-base-distribution: ^11.5 || ^12.4 || ^13.4
- typo3/cms-lowlevel: ^11.5 || ^12.4 || ^13.4
This package is auto-updated.
Last update: 2025-04-17 11:24:15 UTC
README
TYPO3 extension typo3_dump_server
This extension brings the Symfony Var Dump Server to TYPO3.
This package provides a dump server that gathers all dump
call outputs, preventing interference with HTTP or API responses.
Requirements
- TYPO3 >= 11.5 & PHP 8.1+
Installation
Composer
composer require --dev konradmichalik/typo3-dump-server
TER
Download the zip file from TYPO3 extension repository (TER).
Usage
Console command
Start the dump server with the following command:
vendor/bin/typo3 server:dump
Use the format option to change the output format to html
:
vendor/bin/typo3 server:dump --format=html > dump.html
Note
The dump server will be available at tcp://127.0.0.1:9912
by default. Use the environment variable TYPO3_DUMP_SERVER_HOST
to change the host.
Dump
Use the dump
function in your code:
dump($variable);
ViewHelper
Use the symfony:dump
ViewHelper in your Fluid templates:
<html xmlns:symfony="http://typo3.org/ns/KonradMichalik/Typo3DumpServer/ViewHelpers"> <symfony:dump>{variable}</symfony:dump>
Extension settings
By default, a dump()
call will add something like the following output to the frontend if the dump server isn't running:
You can suppress this output with the suppressDump
setting in the extension configuration. If this setting is enabled, the output will be suppressed and the dump will only be sent to the dump server.
You can find the extension settings in the TYPO3 backend under Admin Tools > Settings > Extension Configuration > typo3_dump_server
.
Development
Use the following ddev command to easily install all supported TYPO3 versions for locale development.
$ ddev install all
Credits
This project is highly inspired by the laravel-dump-server & the symfony var-dumper component itself.
License
This project is licensed under GNU General Public License 2.0 (or later).