Class PeclUriTemplate
Expands URI templates using the uri_template pecl extension (pecl install uri_template-beta)
- Guzzle\Parser\UriTemplate\PeclUriTemplate implements Guzzle\Parser\UriTemplate\UriTemplateInterface
Namespace: Guzzle\Parser\UriTemplate
Link: http://pecl.php.net/package/uri_template
Link: https://github.com/ioseb/uri-template
Located at Guzzle/Parser/UriTemplate/PeclUriTemplate.php
Link: http://pecl.php.net/package/uri_template
Link: https://github.com/ioseb/uri-template
Located at Guzzle/Parser/UriTemplate/PeclUriTemplate.php
Methods summary
-
public
__construct ( )
-
public
expand ( string $template, array $variables )
Expand the URI template using the supplied variables
Methods detail
Expand the URI template using the supplied variables
Parameters
- $template
string
$template URI Template to expand- $variables
array
$variables Variables to use with the expansion
Returns
string
Returns the expanded template