From d5f095054fdcc56204358875a1dba18499c6cdf6 Mon Sep 17 00:00:00 2001 From: Anatoly Nekhay Date: Thu, 5 Aug 2021 23:24:01 +0300 Subject: [PATCH] update README.md --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 199928a..13cd85f 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ ## Stream wrapper for PHP 7.1+ (incl. PHP 8) based on PSR-7 & PSR-17 [![Gitter](https://badges.gitter.im/sunrise-php/support.png)](https://gitter.im/sunrise-php/support) -[![Build Status](https://scrutinizer-ci.com/g/sunrise-php/stream/badges/build.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/stream/build-status/master) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sunrise-php/stream/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/stream/?branch=master) -[![Code Coverage](https://scrutinizer-ci.com/g/sunrise-php/stream/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/stream/?branch=master) -[![Latest Stable Version](https://poser.pugx.org/sunrise/stream/v/stable)](https://packagist.org/packages/sunrise/stream) -[![Total Downloads](https://poser.pugx.org/sunrise/stream/downloads)](https://packagist.org/packages/sunrise/stream) -[![License](https://poser.pugx.org/sunrise/stream/license)](https://packagist.org/packages/sunrise/stream) +[![Build Status](https://circleci.com/gh/sunrise-php/stream.svg?style=shield)](https://circleci.com/gh/sunrise-php/stream) +[![Code Coverage](https://scrutinizer-ci.com/g/sunrise-php/stream/badges/coverage.png?b=main)](https://scrutinizer-ci.com/g/sunrise-php/stream/?branch=main) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sunrise-php/stream/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/sunrise-php/stream/?branch=main) +[![Total Downloads](https://poser.pugx.org/sunrise/stream/downloads?format=flat)](https://packagist.org/packages/sunrise/stream) +[![Latest Stable Version](https://poser.pugx.org/sunrise/stream/v/stable?format=flat)](https://packagist.org/packages/sunrise/stream) +[![License](https://poser.pugx.org/sunrise/stream/license?format=flat)](https://packagist.org/packages/sunrise/stream) ## Awards @@ -36,6 +36,9 @@ $stream = (new StreamFactory)->createStreamFromFile('http://php.net/', 'rb'); // creates a new stream from the given resource $stream = (new StreamFactory)->createStreamFromResource(fopen(...)); +// creates a new stream from temporary file (available from version 1.3) +$stream = (new StreamFactory)->createStreamFromTemporaryFile(?string); + // converts the stream to string (string) $stream;