UriTemplate
class UriTemplate implements Stringable
Constants
| private MAX_TEMPLATE_LENGTH |
|
| private MAX_VARIABLE_LENGTH |
|
| private MAX_TEMPLATE_EXPRESSIONS |
|
| private MAX_REGEX_LENGTH |
|
| private URI_TEMPLATE_PATTERN |
|
Methods
__construct(string $template)
Create a URI template.
array|null
match(string $uri)
Match a URI and extract its template variables.
array
variableNames()
Get the distinct template variable names.
string
__toString()
Get the original template.
Details
at line 31
__construct(string $template)
Create a URI template.
at line 47
array|null
match(string $uri)
Match a URI and extract its template variables.
at line 71
array
variableNames()
Get the distinct template variable names.
at line 79
string
__toString()
Get the original template.