PHP code example of snapshotpl / zf-snap-php-debug-bar

1. Go to this page and download the library: Download snapshotpl/zf-snap-php-debug-bar 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/ */

    

snapshotpl / zf-snap-php-debug-bar example snippets


return [
    'modules' => [
        'ZfSnapPhpDebugBar',
    ],
];

debugbar_log('ZfSnapPhpDebugBar is awesome!');

ZfSnapPhpDebugBar\Module::log('ZfSnapPhpDebugBar is awesome!');

$writer = $sm->get(ZfSnapPhpDebugBar\Log\Writer\PhpDebugBar::class);
$log = new Zend\Log\Logger();
$log->addWriter($writer);
$log->info('ZfSnapPhpDebugBar is awesome!');

$debugbar = $sm->get('debugbar');
$debugbar['messages']->addMessage('ZfSnapPhpDebugBar is awesome!'));
bash
php composer