src/Resources/Games.php
public function getTopGames($params = [])
  {
      $defaults = [
          'limit'  => 10,
          'offset' => 0,
      ];

      return $this->wrapper->request('GET', 'games/top', ['query' => $this->resolveOptions($params, $defaults)]);
  }
public function getTopGames($params = [])
  {
      $defaults = [
          'limit'  => 10,
          'offset' => 0,
      ];

      return $this->wrapper->request('GET', 'games/top', ['query' => $this->resolveOptions($params, $defaults)]);
  }
public function getTopGames ( $ params = [ ] ) { $ defaults = [ 'limit' => 10 , 'offset' => 0 , ] ; return $ this -> wrapper -> request ( 'GET' , 'games/top' , [ 'query' => $ this -> resolveOptions ( $ params , $ defaults ) ] ) ; }
Returns a list of games objects sorted by number of current viewers on Twitch, most popular first.

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

@param  array $params Optional parameters

@return array
Returns a list of games objects sorted by number of current viewers on Twitch most popular first .