src/Packagist/Api/Client.php
protected function request($url)
    {
        if (null === $this->httpClient) {
            $this->httpClient = new HttpClient();
        }

        return $this->httpClient
            ->get($url)
            ->getBody();
    }
protected function request($url)
    {
        if (null === $this->httpClient) {
            $this->httpClient = new HttpClient();
        }

        return $this->httpClient
            ->get($url)
            ->getBody();
    }
protected function request ( $ url ) { if ( null === $ this -> httpClient ) { $ this -> httpClient = new HttpClient ( ) ; } return $ this -> httpClient -> get ( $ url ) -> getBody ( ) ; }
Execute the url request

@param string $url

@return \Psr\Http\Message\StreamInterface
Execute the url request