PHP code example of tina4stack / tina4php-debug
1. Go to this page and download the library: Download tina4stack/tina4php-debug 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/ */
tina4stack / tina4php-debug example snippets
index.php
const TINA4_DOCUMENT_ROOT = __DIR__;
const TINA4_DEBUG = true;
the values as listed below
\Tina4\Debug::$logLevel = [TINA4_LOG_DEBUG, TINA4_LOG_INFO];
//You can code here as per normal
//If you want to output console messages use code like this
\Tina4\Debug::message("Testing", TINA4_LOG_DEBUG);
\Tina4\Debug::message("Testing", TINA4_LOG_WARNING);
\Tina4\Debug::message("Testing", TINA4_LOG_ERROR);
\Tina4\Debug::message("Testing", TINA4_LOG_INFO);
\Tina4\Debug::message("Testing", TINA4_LOG_CRITICAL);
//Render the debug
echo \Tina4\DebugRender::render();