PHP stream implementation.

    CloneableInstantiable
    ImplementsPsr\Http\Message\StreamInterface
    Constants
    public GuzzleHttp\Psr7\Stream::READABLE_MODES = '/r|a\+|ab\+|w\+|wb\+|x\+|xb\+|c\+|cb\+/'
     

    Resource modes.

    • var string
    • see http://php.net/manual/function.fopen.php
    • see http://php.net/manual/en/function.gzopen.php
    public GuzzleHttp\Psr7\Stream::WRITABLE_MODES = '/a|w|r\+|rb\+|rw|x|c/'
    Methods
    public __construct( $stream, $options = [])
     

    This constructor accepts an associative array of options.

    • size: (int) If a read stream would otherwise have an indeterminate
      size, but the size is known due to foreknowledge, then you can
      provide that size, in bytes.
    • metadata: (array) Any additional metadata to return when the metadata
      of the stream is accessed.
    • throws InvalidArgumentException if the stream is not a stream resource
    public __destruct()
     

    Closes the stream when the destructed

    public __toString()
    public close()
    public detach()
    public eof()
    public getContents()
    public getMetadata( $key = NULL)
    public getSize()
    public isReadable()
    public isSeekable()
    public isWritable()
    public read( $length)
    public rewind()
    public seek( $offset, $whence = 0)
    public tell()
    public write( $string)
    Properties
    private $customMetadata
    private $readable
    private $seekable
    private $size
    private $stream
    private $uri
    private $writable
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only