fetchContent($url); if (isset($result['headers'])) { unset($result['headers']); } return $result; } /** * Opengraph * * @param string $url * * @return array */ function opengraph(string $url) : array { $consumer = new Consumer(); $object = $consumer->loadUrl($url); return json_decode(json_encode($object), true); }