PHP code example of irfantoor / debug

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

    

irfantoor / debug example snippets



IrfanTOOR\Debug;
Debug::enable(2); # 2 is debug level

# You can use it to dump data etc.
Debug::dump($_SERVER);
Debug::dump($request);
Debug::dump($response->getHeaders());

    d('Hello World!'); # dump
    dd($_SERVER);      # dump and die!