src/Api/Products.php
public function search($query, $language = null, $group = null)
    {
        $url = sprintf('products/search/%s?%s', $query, http_build_query([
            'lang' => $language,
            'g'    => $group,
            'page' => 1,
        ]));

        return $this->request($url);
    }
public function search($query, $language = null, $group = null)
    {
        $url = sprintf('products/search/%s?%s', $query, http_build_query([
            'lang' => $language,
            'g'    => $group,
            'page' => 1,
        ]));

        return $this->request($url);
    }
public function search ( $ query , $ language = null , $ group = null ) { $ url = sprintf ( 'products/search/%s?%s' , $ query , http_build_query ( [ 'lang' => $ language , 'g' => $ group , 'page' => 1 , ] ) ) ; return $ this -> request ( $ url ) ; }
search packages.

@param string $query
@param string $language
@param string $group

@return array
search packages .