code: public function getLastVersion()
      {
          try {
              $url = self::CHECK_VERSION_URL;
              $client = $this->curlFactory->create();
  
              $client->write(\Zend_Http_Client::GET, $url, '1.1');
              $responseBody = $client->read();
              $client->close();
  
              $responseCode = \Zend_Http_Response::extractCode($responseBody);
              if ($responseCode !== 200) {
                  return false;
              }
              $body = \Zend_Http_Response::extractBody($responseBody);
              $json = json_decode($body);
              $version = !empty($json->version) ? $json->version : false;
  
              return $version;
          } catch (\Exception $e) {
              $this->_logger->log(100, $e->getMessage().$url);
              return false;
          }
      }
docs: Fetches last github version
  
  @return bool|float