Skip to content

Commit

Permalink
Readme verbose info
Browse files Browse the repository at this point in the history
  • Loading branch information
isublimity committed Apr 20, 2022
1 parent 883337a commit 35c69ad
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,26 @@ $db->verbose();
```


Verbose to file|steam:

```php
// init client
$cli = new Client($config);
$cli->verbose();
// temp stream
$stream = fopen('php://memory', 'r+');
// set stream to curl
$cli->transport()->setStdErrOut($stream);
// exec curl
$st=$cli->select('SElect 1 as ppp');
$st->rows();
// rewind
fseek($stream,0,SEEK_SET);

// output
echo stream_get_contents($stream);
```


### Dev & PHPUnit Test

Expand Down

0 comments on commit 35c69ad

Please sign in to comment.