1. Go to this page and download the library: Download filisko/tracy-redbean 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/ */
filisko / tracy-redbean example snippets
R::setup('mysql:host=hostname;dbname=db', 'username', 'password');
/*
Possible log modes:
-------------------
0 Log and write to STDOUT classic style (default)
1 Log only, class style
2 Log and write to STDOUT fancy style
3 Log only, fancy style (it works nicely with this one)
*/
R::debug(true, 3);
// ... your queries here ...
// Get RedBean's Logger
$logger = R::getLogger();
// Create new instance of the panel
$panel = new \Filisko\Tracy\RedBeanBarPanel($logger);
// Boot the panel (collect and show the panel)
\Filisko\Tracy\RedBeanBarPanel::boot($panel);
// Get RedBean's Logger
$logger = R::getLogger();
// Create new instance of the panel
$panel = new \Filisko\Tracy\RedBeanBarPanel($logger);
// Add to middleware
$app->add(new \Filisko\Tracy\RedBeanBarPanelMiddleware($panel));