Skip to content

Kirby 4.3.0


A handy little class to handle all kinds of remote requests

How to get a $remote object

$response = new Remote('');

echo $response->code(); // e.g. 200
echo $response->url(); //
echo $response->method(); // GET


Note that instantiating the object will fetch the data.

You can also get an object by calling the Remote::request()echo method or one of the shortcuts;


Instead of using Remote::request() with the request method defined in the $params array, you can use the HTTP method names as method:

This works, because the Remote class implements the __callStatic magic method, which makes sure to execute not explicitely defined static methods.