Webservice Rest client


I have an URL HTTP with get parameter (ex : http://mydomain.com/params?param=X) who returns a JSON object. It is possible with Phalcon to get the return of this url ?

This way:

$data = file_get_contents("http://mydomain.com/params?param=X");
edited Nov '15

With filegetcontents you cannot put custom header fields (auth/security) etc.

Is there a more convinient framework-like way to achieve ineraction with external web services (i.e. consumer component)?

Or just to stick with raw PHP (cURL) and write one class to handle it all.