PeclUriTemplate
in package
implements
UriTemplateInterface
Expands URI templates using the uri_template pecl extension (pecl install uri_template-beta)
Tags
Table of Contents
Interfaces
- UriTemplateInterface
- Expands URI templates using an array of variables
Methods
- __construct() : mixed
- expand() : string
- Expand the URI template using the supplied variables
Methods
__construct()
public
__construct() : mixed
expand()
Expand the URI template using the supplied variables
public
expand(mixed $template, array<string|int, mixed> $variables) : string
Parameters
- $template : mixed
-
URI Template to expand
- $variables : array<string|int, mixed>
-
Variables to use with the expansion
Return values
string —Returns the expanded template