remote::get($url, $params = array())

Static method to send a GET request

  • $url (string)
  • $params (array)
  • return (object)
    Response

Example

Query Parameters

Pass query parameters by providing a data key in the $params argument:

$response = remote::get('https://baseurl.com', [
  'data' => [
    'param' => 'val'
  ]
]);

// -> GET https://baseurl.com?param=val

Is something missing or incorrect? Edit this page on Github…