PHP code example of shyim / php-dump-client
1. Go to this page and download the library: Download shyim/php-dump-client 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/ */
shyim / php-dump-client example snippets
// Sends variables to the UI Server to show
pd()->log($var1, $var2);
// Sends the trace to the UI
pd()->trace();
// Clears the ui window
pd()->clear();
// Stops the process until its unlocked in the UI
pd()->pause();
// Show execution time of function and memory usage
pd()->time('Label', function() {
sleep(1);
});
// Show execution time of function and memory usage
$timer = pd()->time('Label');
// Do something
$timer->stop();
// Allows tagging of calls in the UI
pd()->tag('My-Tag')->Method($args);
bash
composer req shyim/php-dump-client
bash
composer req shyim/php-dump-client-prefixed