get() public method

A simple curl implementation to get the content of the url.
public get ( string $url ) : string
$url string
return string
 /**
  * Use a curl interface implementation to attempt to load
  * the content from a url.
  *
  * @param string $url
  * @param array $option
  * @param CurlInterface $curl
  * @chainable
  */
 public function loadFromUrl($url, $options = [], CurlInterface $curl = null)
 {
     if (is_null($curl)) {
         // use the default curl interface
         $curl = new Curl();
     }
     $content = $curl->get($url);
     return $this->loadStr($content, $options);
 }