Documentation

PeclUriTemplate
in package
implements UriTemplateInterface

Expands URI templates using the uri_template pecl extension (pecl install uri_template-beta)

Tags
link
http://pecl.php.net/package/uri_template
link
https://github.com/ioseb/uri-template

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

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


        
On this page

Search results