Copied!

Converts Guzzle streams into PHP stream resources.

Cloneable Instantiable
Properties
public $context
 
  • var resource
Methods
public static createStreamContext ( Psr\Http\Message\StreamInterface $stream )
 

Creates a stream context that can be used to open a stream as a php stream resource.

  • return resource
public static getResource ( Psr\Http\Message\StreamInterface $stream )
 

Returns a resource representing the stream.

  • return resource
  • throws InvalidArgumentException if stream is not readable or writable
public static register ()
 

Registers the stream wrapper if needed

public stream_cast ( $cast_as )
public stream_eof ()
public stream_open ( $path , $mode , $options , $opened_path )
public stream_read ( $count )
public stream_seek ( $offset , $whence )
public stream_stat ()
public stream_tell ()
public stream_write ( $data )
public url_stat ( $path , $flags )
Properties
private $mode
 
  • var string r, r+, or w
private $stream
 
  • var StreamInterface
Methods
public static createStreamContext ( Psr\Http\Message\StreamInterface $stream )
 

Creates a stream context that can be used to open a stream as a php stream resource.

  • return resource
public static getResource ( Psr\Http\Message\StreamInterface $stream )
 

Returns a resource representing the stream.

  • return resource
  • throws InvalidArgumentException if stream is not readable or writable
public static register ()
 

Registers the stream wrapper if needed

© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only