code: public static function table(array $rows, array $headers = [])
      {
          $table = new Table();
          $table->setRows($rows);
          if (count($headers) > 0) {
              $table->setHeaders($headers);
          }
          $output = $table->render();
          self::writeln($output);
      }
docs: Show table.
  
  @param array $rows
  @param array $headers Default [].