PHP extension implementation of RFC-6570(URI Template) in C - http://tools.ietf.org/html/rfc6570