Documentation

StreamWrapper
in package

Converts Guzzle streams into PHP stream resources.

Tags
final

Table of Contents

$context  : resource
$mode  : string
$stream  : StreamInterface
createStreamContext()  : resource
Creates a stream context that can be used to open a stream as a php stream resource.
getResource()  : resource
Returns a resource representing the stream.
register()  : mixed
Registers the stream wrapper if needed
stream_cast()  : mixed
stream_eof()  : mixed
stream_open()  : mixed
stream_read()  : mixed
stream_seek()  : mixed
stream_stat()  : mixed
stream_tell()  : mixed
stream_write()  : mixed
url_stat()  : mixed

Properties

Methods

createStreamContext()

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

public static createStreamContext(StreamInterface $stream) : resource
Parameters
$stream : StreamInterface
Return values
resource

getResource()

Returns a resource representing the stream.

public static getResource(StreamInterface $stream) : resource
Parameters
$stream : StreamInterface

The stream to get a resource for

Tags
throws
InvalidArgumentException

if stream is not readable or writable

Return values
resource

register()

Registers the stream wrapper if needed

public static register() : mixed
Return values
mixed

stream_cast()

public stream_cast(mixed $cast_as) : mixed
Parameters
$cast_as : mixed
Return values
mixed

stream_eof()

public stream_eof() : mixed
Return values
mixed

stream_open()

public stream_open(mixed $path, mixed $mode, mixed $options, mixed &$opened_path) : mixed
Parameters
$path : mixed
$mode : mixed
$options : mixed
$opened_path : mixed
Return values
mixed

stream_read()

public stream_read(mixed $count) : mixed
Parameters
$count : mixed
Return values
mixed

stream_seek()

public stream_seek(mixed $offset, mixed $whence) : mixed
Parameters
$offset : mixed
$whence : mixed
Return values
mixed

stream_stat()

public stream_stat() : mixed
Return values
mixed

stream_tell()

public stream_tell() : mixed
Return values
mixed

stream_write()

public stream_write(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

url_stat()

public url_stat(mixed $path, mixed $flags) : mixed
Parameters
$path : mixed
$flags : mixed
Return values
mixed

Search results