PHP code example of intriro / stream
1. Go to this page and download the library: Download intriro/stream 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/ */
intriro / stream example snippets
$resource = fopen('/home/test/file.txt', 'rw+');
$stream = Stream::createFromResource($resource);
$stream = Stream::createFromFilename('file:///home/test/file.txt', 'r');
$stream = Stream::createFromUrl('php://temp', 'r');