public function search()
    {
        $url = self::PACKAGIST_URL.'search.json?q='.$this->getPackageName();

        $response = $this->client
                         ->get($url)
                         ->getBody()
                         ->getContents();

        $this->rawPackages = collect(json_decode($response, true));

        return collect($this->rawPackages->get('results'));
    }
public function search()
    {
        $url = self::PACKAGIST_URL.'search.json?q='.$this->getPackageName();

        $response = $this->client
                         ->get($url)
                         ->getBody()
                         ->getContents();

        $this->rawPackages = collect(json_decode($response, true));

        return collect($this->rawPackages->get('results'));
    }
public function search ( ) { $ url = self :: PACKAGIST_URL . 'search.json?q=' . $ this -> getPackageName ( ) ; $ response = $ this -> client -> get ( $ url ) -> getBody ( ) -> getContents ( ) ; $ this -> rawPackages = collect ( json_decode ( $ response , true ) ) ; return collect ( $ this -> rawPackages -> get ( 'results' ) ) ; }
Search the given package.

@return mixed
Search the given package .