1. Go to this page and download the library: Download nikoutel/phpdebugr 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/ */
nikoutel / phpdebugr example snippets
use Nikoutel\Debugr\Debugr;
// composer:
\Debugr\Debugr;
// no composer:
> $varB = 42;
> Debugr::edbg($varB);
>
> $varC = 103993/33102;
> Debugr::edbg($varC, 'the value of pi is');
>
> Debugr::edbgLog($varG); # writes to output.log defined in config.php
> Debugr::setLogFile(newOutput.log);
> Debugr::edbgLog($varH); # writes to newOutput.log
> Debugr::edbgLog($varI, 'v', 'prioOutput.log'); # writes to prioOutput.log
> Debugr::edbgLog($varJ); # writes to newOutput.log
>
>
> $book = new stdClass;
> $book->php = 'PHP Design Patterns, Stephan Schmidt';
> $book->c = 'The C Programming Language, Kernighan & Ritchie';
> $book->unix = 'The unix programming environment, Kernighan & Pike';
> $book->economics = 'Making Millions For Dummies';
> Debugr::edbgConsole($book, '$book');
>
> (18/10/2017 17:23:58) /LondonBlue/Secret/getSecret.php
> resource(19) of type (stream)
>
> (18/10/2017 17:23:58) /LondonBlue/Secret/getSecret.php
> resource(19) of type (Unknown)
>
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.