src/Resources/Search.php
public function searchGames($query, $params = [])
  {
      $defaults = [
          'query' => urlencode($query),
          'limit' => 25,
          'type'  => 'suggest',
          'live'  => false,
      ];

      return $this->wrapper->request('GET', 'search/games', ['query' => $this->resolveOptions($params, $defaults)]);
  }
public function searchGames($query, $params = [])
  {
      $defaults = [
          'query' => urlencode($query),
          'limit' => 25,
          'type'  => 'suggest',
          'live'  => false,
      ];

      return $this->wrapper->request('GET', 'search/games', ['query' => $this->resolveOptions($params, $defaults)]);
  }
public function searchGames ( $ query , $ params = [ ] ) { $ defaults = [ 'query' => urlencode ( $ query ) , 'limit' => 25 , 'type' => 'suggest' , 'live' => false , ] ; return $ this -> wrapper -> request ( 'GET' , 'search/games' , [ 'query' => $ this -> resolveOptions ( $ params , $ defaults ) ] ) ; }
Returns a list of game objects matching the search query.

Learn more:
https://github.com/justintv/Twitch-API/blob/master/v3_resources/search.md#get-searchgames

@param  string $query   Search query
@param  array $params  Optional params

@return array
Returns a list of game objects matching the search query .