Renderer
abstract class Renderer implements Renderable, Jsonable, JsonSerializable
Properties
protected string | $format | ||
protected string | $extension | ||
protected array | $options |
Methods
No description
No description
Get the Chromium version of the renderer
No description
No description
Sets the devicePixelRatio of the viewport
Waits until the entire document, including resources are fully loaded.
Waits until the 'DOMContentLoaded' event is fired.
Waits until there has not been any network requests for at least 500ms
Waits until there has not been more than 2 network requests for at least 500ms
Maximum amount of time to wait before timing out in milliseconds. Defaults to 30000
Get the rendered content as a file handle (resource)
Get the rendered content as a blob
Retrieve the rendered content as a download response
Retrieve the rendered content as a response
Retrieve URL to the rendered content
Postprocessing stage
Render from a view
Render from named route.
No description
No description
No description
No description
Details
at line 50
protected
__construct(string $url, array $options = [])
at line 62
static protected object
status()
at line 72
static string
version()
Get the Chromium version of the renderer
at line 81
protected ResponseInterface
fetch()
at line 112
protected Renderer
setOption(string $key, mixed $value)
Set option
at line 127
protected
getOption(string $key, $default = null)
at line 142
Renderer
devicePixelRatio(float $pixelRatio = 1.0)
Sets the devicePixelRatio of the viewport
at line 152
Renderer
waitUntilLoaded()
Waits until the entire document, including resources are fully loaded.
at line 162
Renderer
waitUntiDOMContentLoaded()
Waits until the 'DOMContentLoaded' event is fired.
at line 172
Renderer
waitUntiNetworkIdle()
Waits until there has not been any network requests for at least 500ms
at line 182
Renderer
waitUntiNetworkSettled()
Waits until there has not been more than 2 network requests for at least 500ms
at line 193
Renderer
timeout(int $timeout)
Maximum amount of time to wait before timing out in milliseconds. Defaults to 30000
at line 203
resource
stream()
Get the rendered content as a file handle (resource)
at line 216
string|null
blob()
Get the rendered content as a blob
at line 231
Response
download(string $filename = null)
Retrieve the rendered content as a download response
at line 256
Response
toResponse(Request $request = null)
Retrieve the rendered content as a response
at line 279
string
link()
Retrieve URL to the rendered content
at line 295
protected ResponseInterface
postProcess(ResponseInterface $response)
Postprocessing stage
at line 306
static Renderer
url(string $url)
Render from url external or interal
at line 321
static Renderer
from(HtmlString|string $html)
Render from raw markup
at line 338
static Renderer
view(View|string $view, Arrayable|array $data = [], array $mergeData = [])
Render from a view
at line 355
static Renderer
route(array|string $name = null, mixed $parameters = [], bool $absolute = true)
Render from named route.