code: public static function createHttpClient(
          $baseParams = [],
          $debugLogging = false,
          Logger $logger = null,
          $maxMessageLogLength = 5000
      ) {
  
          // attach our debug logger?
          if ($debugLogging && $logger instanceof Logger) {
              if (!isset($baseParams['handler']) || !($baseParams['handler'] instanceof HandlerStack)) {
                  $baseParams['handler'] = HandlerStack::create();
              }
  
              $baseParams['handler']->push(
                  Middleware::mapRequest(
                      Logging::getCallable($logger, 'REQUEST', $maxMessageLogLength)
                  )
              );
              $baseParams['handler']->push(
                  Middleware::mapResponse(
                      Logging::getCallable($logger, 'RESPONSE', $maxMessageLogLength)
                  )
              );
          }
  
          return new Client($baseParams);
      }
docs: creates a http client (ie guzzle)
  
  @return Client guzzle client