PHP code example of bupy7 / zf-php-debug-bar

1. Go to this page and download the library: Download bupy7/zf-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/ */

    

bupy7 / zf-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