PHP code example of fusionspim / php-capsule-listener

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

    

fusionspim / php-capsule-listener example snippets


start_dumping_queries();
// Run some SQL.
stop_dumping_queries();

start_capturing_queries();
// Run some SQL.
$logs = stop_capturing_queries();
var_dump($logs);

(new CapsuleDebugListener)->enable(function (array $stack) {
    // Your custom output handling here.
});