PHP code example of 4spacesdk / ci4debugtool

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

    

4spacesdk / ci4debugtool example snippets

 
Data::set('bench', 0);
timer('code-start');
 
protected function success($code = 200) {
    $this->response->setStatusCode($code);
    Data::set('bench', timer()->getElapsedTime('code-start'));
    $this->response->setJSON(Data::getStore());
    $this->response->send();
}