NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# 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

## Methods summary

- `public` `__construct ( )`
- `public` `expand ( string $template, array $variables )`

  Expand the URI template using the supplied variables

## Methods detail

# `public`
`__construct( )`
# `public string`
`expand( string $template, array $variables )`

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

#### Implementation of

`Guzzle\Parser\UriTemplate\UriTemplateInterface::expand()`

### Magic methods summary