Stream wrapper to convert markup of mostly-PHP templates into PHP prior to include().

Based in large part on the example at http://www.php.net/manual/en/function.stream-wrapper-register.php

As well as the example provided at: http://mikenaberezny.com/2006/02/19/symphony-templates-ruby-erb/ written by Mike Naberezny (@link http://mikenaberezny.com) Paul M. Jones (@link http://paul-m-jones.com)

 Methods

Tells if we are at the end of the stream.

stream_eof() : bool

Returns

bool

Opens the script file and converts markup.

stream_open($path, $mode, $options, $opened_path) : bool

Parameters

$path

$mode

$options

$opened_path

Returns

bool

Reads from the stream.

stream_read($count) : string | false

Parameters

$count

Returns

stringfalse

Seek to a specific point in the stream.

stream_seek($offset, $whence) : bool

Parameters

$offset

$whence

Returns

bool

Stream statistics.

stream_stat() : array

Returns

array

Tells the current position in the stream.

stream_tell() : int

Returns

int

Included so that __FILE__ returns the appropriate info

url_stat() : array

Returns

array

 Properties

 

Data for streaming.

$data : string

 

Current stream position.

$pos : int

 

Stream stats.

$stat : array