guzzlehttp/streams
Abandoned by its maintainers. Provides a simple abstraction over streams of data
3.0.0
90M downloads/mo
#1339 most downloaded on Packagist
guzzle/streams
What this package is like to depend on
Last release 12 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 3 months
Nearly every release is documented
notes for 9 of 10 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
12 releases · first in 2014
0 releases in the last 12 months
see the full history below
Release timeline
12 releases · Mar 2014 to Oct 2014Releases
latest 12-
3.0.012 Oct 2014Release notes
Open source →Now supports creating streams from functions and iterators.
Supports creating buffered streams and asynchronous streams.
Removed functions.php. Use the corresponding functions provided by GuzzleHttp\Streams\Utils instead.
Moved GuzzleHttp\Stream\MetadataStreamInterface::getMetadata to GuzzleHttp\Stream\StreamInterface. MetadataStreamInterface is no longer used and is marked as deprecated.
Added attach() to GuzzleHttp\Stream\StreamInterface for PSR-7 compatibility.
Removed flush() from StreamInterface.
Removed the $maxLength parameter from GuzzleHttp\Stream\StreamInterface::getContents(). This function now returns the entire remainder of the stream. If you want to limit the maximum amount of data read from the stream, use the GuzzleHttp\Stream\Utils::copyToString() function.
Streams that return an empty string, '', are no longer considered a failure. You MUST return false to mark the read as a failure, and ensure that any decorators you create properly return true in response to the eof() method when the stream is consumed.
GuzzleHttp\Stream\Stream::__construct, GuzzleHttp\Stream\Stream::factory, and GuzzleHttp\Stream\Utils::create no longer accept a size in the second argument. They now accept an associative array of options, including the "size" key and "metadata" key which can be used to provide custom metadata.
Added GuzzleHttp\Stream\BufferStream to add support for buffering data, and when read, shifting data off of the buffer.
Added GuzzleHttp\Stream\NullBuffer which can be used as a buffer that does not actually store any data.
Added GuzzleHttp\Stream\AsyncStream to provide support for non-blocking streams that can be filled by a remote source (e.g., an event-loop). If a drain option is provided, the stream can also act as if it is a blocking stream.
-
2.1.017 Aug 2014Release notes
Open source →- Added
flushto stream wrapper. - Added the ability to easily register the GuzzleStreamWrapper if needed.
Release notes
Open source →Added an InflateStream to inflate gzipped or deflated content.
Added flush to stream wrapper.
Added the ability to easily register the GuzzleStreamWrapper if needed.
- Added
-
2.0.017 Aug 2014Release notes
Open source →- Deprecated functions.php and moved all of those methods to
GuzzleHttp\Streams\Utils. UseGuzzleHttp\Stream\Stream::factory()
instead ofGuzzleHttp\Stream\create()to create new streams. - Added
flush()toStreamInterface. This method is used to flush any
underlying stream write buffers. - Added
FnStreamto easily decorate stream behavior with callables. Utils::hashnow throws an exception when the stream cannot seek to 0.
Release notes
Open source →Deprecated functions.php and moved all of those methods to GuzzleHttp\Streams\Utils. Use GuzzleHttp\Stream\Stream::factory() instead of GuzzleHttp\Stream\create() to create new streams.
Added flush() to StreamInterface. This method is used to flush any underlying stream write buffers.
Added FnStream to easily decorate stream behavior with callables.
Utils::hash now throws an exception when the stream cannot seek to 0.
- Deprecated functions.php and moved all of those methods to
-
1.5.110 Aug 2014Release notes
Open source →getMetadatais called rather than returning a value from a cache.- Properly closing all underlying streams when AppendStream is closed.
- Seek functions no longer throw exceptions.
- LazyOpenStream now correctly returns the underlying stream resource when
detached.
Release notes
Open source →Stream metadata is grabbed from the underlying stream each time getMetadata is called rather than returning a value from a cache.
Properly closing all underlying streams when AppendStream is closed.
Seek functions no longer throw exceptions.
LazyOpenStream now correctly returns the underlying stream resource when detached.
-
1.5.008 Aug 2014Release notes
Open source →Added Stream\safe_open to open stream resources and throw exceptions instead of raising errors.
-
1.4.019 Jul 2014 -
1.3.015 Jul 2014Release notes
Open source →Added an AppendStream to stream over multiple stream one after the other.
-
1.2.015 Jul 2014Release notes
Open source →Updated the detach() method to return the underlying stream resource or null if it does not wrap a resource.
Multiple fixes for how streams behave when the underlying resource is detached
Do not clear statcache when a stream does not have a 'uri'
Added a fix to LimitStream
Added a condition to ensure that functions.php can be required multiple times
-
1.1.003 Apr 2014 -
1.0.025 Mar 2014Nothing published for this version
-
1.0.0-rc.217 Mar 2014 pre-releaseNothing published for this version
-
1.0.0-rc.112 Mar 2014 pre-releaseNothing published for this version