Guzzle 3 had URI templates that allowed for a request definition such as
$request = $client->get(array('http://example.com{+path}{/segments*}{?query,data*}', array(
'path' => '/foo/bar',
'segments' => array('one', 'two'),
'query' => 'test',
'data' => array(
'more' => 'value'
)
)));
In my case, i am looking to exploit the 'segments', but Guzzle 5 doesn't seem to define this.
Instead the closest ive come across was
* $client = new Client([
* 'base_url' => [
* 'http://www.foo.com/{version}/',
* ['version' => '123']
* ],
* 'defaults' => [
* 'timeout' => 10,
* 'allow_redirects' => false,
* 'proxy' => '192.168.16.1:10'
* ]
* ]);
But, this as you see applies to the base_url
Is there anyway i can use a URI template like the one in Guzzle 3?