PHP code example of konradmichalik / typo3-dump-server

1. Go to this page and download the library: Download konradmichalik/typo3-dump-server library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

konradmichalik / typo3-dump-server example snippets


dump($variable);

// or

\Symfony\Component\VarDumper::dump($variable);

use KonradMichalik\Typo3DumpServer\Event\DumpEvent;
use TYPO3\CMS\Core\Attribute\AsEventListener;

#[AsEventListener]
final class MyDumpEventListener
{
    public function __invoke(DumpEvent $event): void
    {
        $value = $event->getValue();
        $type = $event->getType();
        
        // Your custom logic here
        error_log("Dumped {$type}: " . print_r($value, true));
    }
}
bash
export TYPO3_DUMP_SERVER_IDE=phpstorm