fk / helpers
There is no license information available for the latest version (v2.0.34) of this package.
Common helpers for php
v2.0.34
2022-05-12 06:30 UTC
Requires
- php: >=7.0
- fk/http-status: ^2.0
README
This is used to capture request for api
<?php 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' ]);