PHP code example of fk / helpers

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

    

fk / helpers example snippets




use fk\helpers\debug\Capture;
use fk\helpers\debug\FileWriter;

$filename = __DIR__ . '/capture.log';
$writer = new FileWriter($filename);
$capture = new Capture($writer);

// Capture::softAdd will buffer data
// and write when the next write performs
$capture->softAdd([
    'field' => 'mixed value'
]);

// all redefined data and buffers will
// immediately written
$capture->capture();

// Writes data and buffer
$capture->add([
    'field' => 'mixed value'
]);